LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Automatically load scripts at boot (https://www.linuxquestions.org/questions/linux-newbie-8/automatically-load-scripts-at-boot-191175/)

clwhitt 06-08-2004 01:45 PM

Automatically load scripts at boot
 
I'm currently using SuSE 9.1 Pro. I need to know how or where to place a script that will automatically load up my wireless extensions when booting and/or plugging in my usb wireless adapter (like an autoexec.bat file).

Currently my script contains:
iwconfig wlan0 mode Managed channel 6 essid any nickname wlan
ifconfig wlan0 192.168.0.44
route add default gw 192.168.0.1

Komakino 06-08-2004 02:12 PM

if you put #!/bin/bash at the top of your script, save it with as something memorable, and then place it in a global location (such as /usr/etc) and call it from rc.local.

Or better still, just add the lines of your script to the bottom of rc.local (/etc/rc.d/rc.local on slackware, maybe a different location on SuSE)

clwhitt 06-14-2004 11:37 AM

Automatically load scripts at boot
 
Thanks Kamakino. I did find that boot.local is the equivalent to rc.local in SuSE 9.1 Pro.
Unfortunately, I also found that not to be the right place to place the script I need. Watching the startup, it looks like my script to setup my wireless network adapter is run before the USB drivers are installed, and therefore fails.
Where would I place a script that is run after KDE starts up?

Chuck


All times are GMT -5. The time now is 11:51 PM.