View Single Post
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#823
Originally Posted by ajalkane View Post
ProfileMatic runs as user. So if you need some custom action to run as "root", you'll need to figure out how to invoke the command from script using "devel-su". I seem to remember it's possible, but I don't remember the details.
You can create a script eg. execasroot.sh
in that file you will have
#!/bin/sh

echo rootpassword | devel-su -c command
Now in profileMatic run the custom action linking to this created script I use this method flawlessly.

Of course, if you replace command for "sh /path/of/file.sh" you can create a script that will run various commands all under root.
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055

Last edited by MFaroTusino; 2012-10-21 at 10:03.
 

The Following 2 Users Say Thank You to MFaroTusino For This Useful Post: