Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Starting a script at bootup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sardiskan
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2004
Posts: 115
Location: Montgomery

PostPosted: Tue Dec 28, 2004 7:16 pm    Post subject: Starting a script at bootup Reply with quote

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.
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Tue Dec 28, 2004 7:32 pm    Post subject: Reply with quote

Just put it in /etc/conf.d/local.start.
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum