maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Auto start script (https://talk.maemo.org/showthread.php?t=73847)

Vento 2011-06-08 18:54

Auto start script
 
Does this script make sense?

Code:

start on started hildon-desktop
stop on starting shutdown
console none
service

script

sudo gainroot
/home/user # cd MyDocs/wl1251-maemo/binary/compat-wireless
/home/user/MyDocs/wl1251-maemo/binary/compat-wireless # sh load.sh

end script


retsaw 2011-06-08 20:12

Re: Auto start script
 
Not really.
This script will be run as root so the "sudo gainroot" is unnecessary, also the bit before the hash symbol isn't actually part of the command, it is just displayed in the terminal for your information.

Try:
Code:

start on started hildon-desktop
stop on starting shutdown
console none
service

script

cd /home/user/MyDocs/wl1251-maemo/binary/compat-wireless
sh load.sh

end script

This should work, I think, but I didn't test it.


All times are GMT. The time now is 22:32.

vBulletin® Version 3.8.8