View Single Post
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#180
I think that will depend if you guys have modified your sudoers file for something else previously.

Normally I don't think running sudo "command" on the N900 will work even with rootsh..

Rootsh allows you to run "sudo gainroot" to get root, then the command. Sudo <commands> still ask for a password (in my understanding.)

So what you would want normally I think would be something like:

Code:
echo /sbin/reboot | sudo gainroot
and depend your app on rootsh.. although I don't think depending on rootsh is a good idea.

There must be some kind of API in dbus or somewhere to tell the device to reboot properly instead of running shell commands.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

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