hi I want to add these scripts to init.rc but I get the error that init.rc doesnt support echo.
echo device > /sys/devices/platform/usbc.0/mode
what is the right way to do such a thing in init.rc?
on 04/10/2013 – Made popular on 04/10/2013
I'm trying to understand the init/boot process. My system is LMDE, so I presume it will be pretty much standard Debian in that regard. I believe I more or less understand the basics of the init scripts, /etc/init.d/, /etc/defaults/ and so on, but there's this strange use of /lib/init/ for a few of the scripts that look to me like they should be in /etc/init.d/ with all the rest.
I using CentOS 6.4 and have a small problem with using read in /etc/rc.local file. It will allow keyboard entry but does not echo any of the key strokes during input. This is something the worked fine in CentOS 5.5.
I would like to run a script at startup.
I put the script in the /etc/init.d folder, but it does not get called.
I think I have to register it somehow (modprobe maybe?) but I can't remember how to do that.
Here's the script (it's just to turn off the very very very annoying ambient light sensor of my laptop)
Most people in here knows what init.d is, and almost all their devices (If not all) has init.d implemented, a widely used feature that a lot of people (Users and Devs) finds essential for any ROM. There is however one major issue with init.d implementations on Android, that is, we do not have any standards for how it should work.