Tiny Core Linux
Tiny Core Base => Micro Core => Topic started by: Scooby on February 12, 2013, 01:05:38 PM
-
Similar to http://forum.tinycorelinux.net/index.php?topic=6277.0 (http://forum.tinycorelinux.net/index.php?topic=6277.0)
I want to run a script at startup
It is ash-script who calls a perl-script
the scripts runs fine when I test from the commandline
I put it in /opt/bootlocal.sh
the output from the perl-script is seen but ash user interaction does not work
what is different about perl and ash? can you set stdout stdin somehow?
In the above thread the solution is to put script in /etc/init.d/tc-config
That doesnt seem to be a clean solution
when searching tc-config for bootlocal.sh i cannot find it, from where does it start
-
from /opt/bootsync.sh
# Use bootlocal.sh for system startup commands that can run in the background
-
Hey man such an easy beautiful solution
I must say this in wiki is a little misleading =bootlocal]http://wiki.tinycorelinux.net/wiki:bootlocal.sh_and_shutdown.sh?s[]=bootlocal (http://wiki.tinycorelinux.net/wiki:bootlocal.sh_and_shutdown.sh?s[)
/opt/bootsync.sh is run early in the boot process.
/opt/bootlocal.sh is run later in the boot process.
Most commands should go in /opt/bootlocal.sh, except commands you want executed early in the boot process.
bootlocal is run from within bootsync. I think someone should update.
And I love for that help text to go in bootlocal.sh as well
Thanks again for the easiest solution ever