PDA

View Full Version : Startup Script doesn't run



orcslayer
01-02-2004, 11:19 PM
First, I am using a usb jumpdrive to save my homedir and config files. At bootup I specify myconfig=scan and home=scan. There doesn't seem to be any problems with saving things like browser settings, desktop changes etc. , but I cannot seem to get a startup script to run to activate my network settings (wireless). I've tried creating a sym-link in /etc/init.d, /etc/rcS.d and /etc/rc5.d none of which work. I even ran saveconfig after each link was added.

My jumpdrive is mounted as /mnt/sda1
I have my startup scripts in /mnt/sda1/etc/
The symbolic links I have tried to get working are like this:

in /etc/rcS.d
ln -s /mnt/sda1/etc/S01-network-config.home S01-network-config.home

in /etc/rc5.d
ln -s /mnt/sda1/etc/S01-network-config.home S77-network-config.home

in /etc/init.d
ln -s /mnt/sda1/etc/S01-network-config.home homenet

Does anyone know how to get a startup script to run persistently? If so, I would like to hear about it.

Thanks in advance.

arkaine23
01-03-2004, 02:04 AM
Remaster your knoppix CD so that the softlink you're trying to create actually exists when the system is booting (in /etc/rc5.d and probably rc2.d and rc3.d as well) and so your script is embedded in the CD filesystem (/usr/local/bin is a good place). If you're adding it after you boot, it is not being saved.