PDA

View Full Version : Startup Scripts



coindood
03-26-2004, 01:43 AM
I had gotten my realtek8180 wlan card to work, and have happily ./wlanup'ed everytime I turned on my computer, but now I just want it to be executed when the computer starts up. I looked around and saw something about putting it in the rc.d (something) directory, tried it, but it didn't work. Any suggestions?

Stephen
03-26-2004, 02:34 AM
I had gotten my realtek8180 wlan card to work, and have happily ./wlanup'ed everytime I turned on my computer, but now I just want it to be executed when the computer starts up. I looked around and saw something about putting it in the rc.d (something) directory, tried it, but it didn't work. Any suggestions?


Edit the file /etc/init.d/bootmisc.sh and put lines similar to these near the bottom of the file.



## Added by me for wlan card
if [ -r /path/to/script ]; then
. /path/to/script
fi


Note: In the third line there is a space between the . and the start of the /path/to/script.