I still get the same 2 errors with a space, only the first one says "While [ not found".
ok Lunatics stick with it I swear it works lol. here do this one.
also are you running from a terminal or from Gscript ?Code:while [ 1 ] do echo 0 > /sys/class/leds/keyboard-backlight/brightness cat /dev/input/event4|read -n 4 echo "1" > /sys/class/leds/keyboard-backlight/brightness sleep 15 done
Excellent. The error is probably because Gscript is executing before its granted root. Make sure the box for use root is checked. You can also ad the command "su" at the start of the sript to be sure.
from D2G duh..
What I've got is a script that starts the two light scripts, it looks like this:
Because each of the light scripts are open ended while scripts, the first one starts, but never loads the second one.Code:#!/system/bin/sh keyboardlights.sh softkeylights.sh
You seem like you know a bit about scripts, what can I do to make it start the first light script and then continue on to the next one.
fixed it!Code:nohup keyboardlights.sh & nohup softkeylights.sh &
Romer_v7 released in the original Thread Here
Last edited by buryboi; 03-15-2011 at 09:21 PM.
Nice solution! I'm happy I could help out with romer 7. This is great stuff.
My fix incapsulated both events in functions of the same script droped that into /system/etc/init.d and created a config file for timeout variable adjustment I'm working on a script to change config values from terminal so I can keep the files on the ro mount. If you want ill upload them once I'm sure they are bugless. wow! great day off for me hacking out my droid.
from D2G duh..
Sounds great!! Thanks again for coming up with this fix! Makes the Roms much more usable.