Quote (henk.1955 @ Mar. 22 2005,04:20) | ||||
*.tar.gz, *.dsl and *.uci are loaded at boottime with the /etc/rcS.d/S01dsl-config. this is a link to /KNOPPIX/etc/init.d/dsl-config. So if you want a script to run at boottime: you can put it in in /etc/init.d and have links in /etc/rc2.d/, /etc/rc3.d/,/etc/rc4.d/,/etc/rc5.d/ to the script. then tar.gz the script and the links. ( does not have to be a *.dsl, /etc is writeable as it in minirt24 which is the root). put the script where mydsl= finds it. example: /etc/init.d/echo_hostname
ln -sf /etc/init.d/echo_hostname /etc/rc2.d/S01echo_hostname ln -sf /etc/init.d/echo_hostname /etc/rc3.d/S01echo_hostname ln -sf /etc/init.d/echo_hostname /etc/rc4.d/S01echo_hostname ln -sf /etc/init.d/echo_hostname /etc/rc5.d/S01echo_hostname The links in the /etc/rc2.d .. /etc/rc5.d make sure the script is run no matter what runlevel you choise. the S01 in the linkname defines the order in which the scripts are run S01 first S99 last Now if you look in /etc/rc2.d to etc/rc5.d you see they have: S49dsl-restore ( this untars the backup.tar.gz) S99bootlocal ( this runs the /opt/bootlocal.sh) i think it is much easier add:
to /opt/bootlocal.sh or put this code in a script, call the script from bootlocal.sh then add them to filetool.lst to have them backedup |