Thread
:
[Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
View Single Post
fatalsaint
2010-02-26 , 17:06
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!
Quote & Reply
|
The Following User Says Thank You to fatalsaint For This Useful Post:
noobmonkey
fatalsaint
View Public Profile
Send a private message to fatalsaint
Find all posts by fatalsaint