You are not logged in.
Hello !
I'm currently using 2.6.37-slitaz for script development but I got an issue that I can't fix.
- I wrote a script which is working when I run it manually with :
"sh /usr/bin/sbin/myscript.sh"
or
"./myscript.sh"
- I want it run at every boot so I add my command
"sh /usr/sbin/myscript.sh"
into
"/etc/init.d/local.sh "
On boot the local.sh don't seems to be launched and my script has not been launched too.
I also tried manually to do "sh /etc/init.d/local.sh" then local.sh is running and my script is working but I can't find a way to properly automate it.
Do someone has an idea ?
Regards,
Gael
Offline
Try:
$ chmod +x /etc/init.d/local.sh
Your script should start with
#!/bin/sh
Test it with:
$ /etc/init.d/local.sh
Offline
Thanks for answer.
I already did the chmod on local.sh and my script begin with #!/bin/sh so it is good.
It works with /etc/init.d/local.sh like i did before with sh /etc/init.d/local.sh
On reboot it still doesn't run...
Offline
RUN_SCRIPTS in /etc/rcS.conf should have local.sh, example:
$ grep RUN_SCRIPTS /etc/rcS.conf
RUN_SCRIPTS="bootopts.sh system.sh network.sh local.sh"
NB: I assume SliTaz is not running live...
Offline
It works great now !
Thanks a lot Bellard !
Offline
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]