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 |
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) |
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. |