View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#5709
Hi bibek
it's not a problem to create a .conf file that will run your script after every reboot.
Example:
Code:
# WiFi fixer
# put this file in to /etc/init/apps directory
description "WiFi fixer"
author "Your name"
stop on core_shutdown
console none
respawn
respawn limit 3 300
normal exit 0

exec sh /path/to/your/script.sh &
If you need run this script as ROOT, write like this:
Code:
exec echo rootme | devel-su -c "sh /path/to/your/script.sh"
rootme = default ROOT pass.
I can create tweak with this, but I don't know what commands this script should include.

Last edited by Schturman; 2013-03-07 at 09:55.