Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: Scooby on February 12, 2013, 01:05:38 PM

Title: Problem with run script at startup
Post 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
Title: Re: Problem with run script at startup
Post by: tinypoodle on February 12, 2013, 01:27:28 PM
from /opt/bootsync.sh
Code: [Select]
# Use bootlocal.sh for system startup commands that can run in the background
Title: Re: Problem with run script at startup
Post by: Scooby on February 12, 2013, 03:11:34 PM
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[)
Quote
/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