sardiskan Tux's lil' helper
Joined: 07 Oct 2004 Posts: 115 Location: Montgomery
|
Posted: Tue Dec 28, 2004 7:16 pm Post subject: Starting a script at bootup |
|
|
I wrote a script I'd like to run at bootup but I can't figure out how to get it to run at boottime.
This is the script:
Code: | cho alias wlan0 prism2_usb >> /etc/modules.conf
/etc/init.d/wlan start
modprobe prism2_usb
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=informs-ap1 authtype=opensystem
ifconfig wlan0 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255
route add default gw 192.168.1.1
|
It's a quick and dirty script that initializes my USB Wireless LAN connection, when I add it to rc-update list, the boottime gives me several errors about the script I used not having a "start" function. IT eventually ends and I can login. In face, the USB Wireless NIC is working just fine, I just don't want all of those errors to come up. Anyone know how I can do this?
Jason _________________ Unless a grain of wheat falls to the ground and dies, it remains only a single seed. |
|