View Single Post
Mikkosssss's Avatar
Posts: 645 | Thanked: 519 times | Joined on Apr 2012 @ Finland
#5
Using scripts.

Code:
Exec=/home/user/execroot.sh /home/user/yourscript.sh
Execroot.sh is script that lets you use root command once (or thats how I get it )
Heres code for it:

Code:
#!/bin/sh

if [ $# -ne 1 ]
then
        echo "Usage: $0 command"
        exit 1
fi

echo rootme | devel-su -c "$1"
Then yourscript.sh can be like this:

Code:
#!/bin/sh

My command
After you make script you need to chmod it or it wont work:
Code:
chmod +x /home/user/yourscript.sh
Also do it to execroot.sh

Edit: Also scripts wont work In MyDocs-> So place them in /home/user/
__________________
────────────────────
Try:My N9 bootvideo

Last edited by Mikkosssss; 2013-11-10 at 11:01.
 

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