Reply
Thread Tools Search this Thread
Posts: 90 | Thanked: 85 times | Joined on Sep 2010 @ USA around Chicago
#11
Originally Posted by tonyhuynh View Post
Pls show me what is reboot code to use in custom action of Profilematic?
echo <your-devel-su-password> | devel-su -c "/sbin/reboot"
 

The Following 2 Users Say Thank You to abyzthomas For This Useful Post:
Posts: 119 | Thanked: 49 times | Joined on Jan 2013
#12
I try with ''/sbin/reboot'' but it not work in Profilematic. I mean in Profilematic i/o terminal. Tks.
 
Posts: 64 | Thanked: 38 times | Joined on Oct 2012 @ Devon, England
#13
Originally Posted by tonyhuynh View Post
I try with ''/sbin/reboot'' but it not work in Profilematic. I mean in Profilematic i/o terminal. Tks.
Use the entire command abyzthomas posted (developer mode must be enabled for it to work). Note that this does mean leaving your devel-su password in plaintext in ProfileMatic, so I hope you're not paranoid.

Also, must stress this: be careful. If attached to the wrong condition, this command could give a device which reboots every time it connects to WiFi, or something similar.

Last edited by Eztran; 02-05-2013 at 08:56 PM.
 

The Following User Says Thank You to Eztran For This Useful Post:
coderus's Avatar
Posts: 1,412 | Thanked: 1,906 times | Joined on Nov 2011 @ Russia
#14
profilematic have no root privileges to reboot. you should be tricky for rebooting your phone via profilematic. =)
__________________
Please Donate for my work
PayPal | WebMoney Z408172606942

twitter @icoderus
 
Posts: 119 | Thanked: 49 times | Joined on Jan 2013
#15
Originally Posted by coderus View Post
profilematic have no root privileges to reboot. you should be tricky for rebooting your phone via profilematic. =)
I cannot do as guided. tks anyway!
 
coderus's Avatar
Posts: 1,412 | Thanked: 1,906 times | Joined on Nov 2011 @ Russia
#16
you may install/incept opensh for using root privilegeswithout password, or tou can write echo script to automatic writing root password to devel-su:
Code:
echo rootme | devel-su -c /sbin/reboot
__________________
Please Donate for my work
PayPal | WebMoney Z408172606942

twitter @icoderus
 

The Following 3 Users Say Thank You to coderus For This Useful Post:
Posts: 952 | Thanked: 1,770 times | Joined on Jun 2011 @ Finland
#17
Originally Posted by coderus View Post
you may install/incept opensh for using root privilegeswithout password, or tou can write echo script to automatic writing root password to devel-su:
Code:
echo rootme | devel-su -c /sbin/reboot
ProfileMatic does not run the custom action in shell at the moment. So if you want something that uses shell commands (redirection or filename expansion), you must run it in shell.

For example put into custom action:

Code:
sh -c "echo rootme | devel-su -c /sbin/reboot"
Or see this "recipe" in ProfileMatic thread to ease running scripts as root:
http://talk.maemo.org/showpost.php?p...&postcount=884
__________________
My N9/N950 projects:
 

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 08:28 PM.