View Single Post
Posts: 10 | Thanked: 5 times | Joined on Jan 2010 @ Tasmania, Australia
#185
Originally Posted by Alan_Peery View Post
You want edit /etc/sudoers, and add an appropriate line. Be careful, this is the file that makes "sudo gainroot" and a lot of other things work.
Always use sudo visudo for this.

Update: see Rob1n's post for a better way to do this using /etc/sudoers.d

Just going right ahead and editing it can be extremely dangerous; messing up the file on a limited permissions system like the N900 can cause brickage.

You probably want to add the command to the sudoers file and then have

echo "" && sudo echo 2 > /sys/class/backlight/acx565akm/brightness

as your DCE script. We begin with echo "" as DCEW doesn't like getting no output.

Last edited by mjec; 2010-03-13 at 05:13.
 

The Following User Says Thank You to mjec For This Useful Post: