Active Topics

 


Reply
Thread Tools
Posts: 307 | Thanked: 488 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"
__________________
Apps for iPhone & iPad
Malayalam Keyboard for iPhoneTelugu Keyboard for iPhoneGujarati Keyboard for iPhone
 

The Following 2 Users Say Thank You to abyzthomas For This Useful Post:
Posts: 142 | Thanked: 72 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: 138 | Thanked: 144 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; 2013-02-06 at 00:56.
 

The Following User Says Thank You to Eztran For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#14
profilematic have no root privileges to reboot. you should be tricky for rebooting your phone via profilematic. =)
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 142 | Thanked: 72 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: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#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
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 3 Users Say Thank You to coderus For This Useful Post:
Posts: 1,313 | Thanked: 2,977 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


 
Forum Jump


All times are GMT. The time now is 01:52.