Fernan Bolando wrote:
> Hi all
> Can anybody share there wifi startup scripts? I wrote a few scripts
> that I manually run to select whether I will connect through the wifi or
> I was wondering if you guys are using something else that works more
> like the way crux is organized.
> I hope that question was clear
Hi, sorry for the late reply. This is what I use. I've XXXXed out
parts you don't need to see but you get the idea. I have this in
/etc/rc.d/ and run it from rc.conf. I comment it out when I'm
travelling and start wifi manually then. The sleep command is needed
for ipw3945d to initialize before trying to access the card.
# /etc/rc.d/net: start/stop wifi
case $1 in
/sbin/ifconfig eth1 192.168.102.4 netmask 255.255.255.0
/sbin/route add default gw 192.168.102.1
/usr/sbin/iwconfig eth1 essid XXXXXXXXX
/usr/sbin/iwconfig eth1 key open s:XXXXX
/usr/sbin/iwconfig eth1 mode managed
/usr/bin/smbmount //lhgw4/src /mnt/src -o
/usr/bin/smbmount //lhgw4/ftp /mnt/ftp -o
/sbin/ifconfig eth1 down
echo "usage: $0 [start|stop|restart]"
CRUX mailing list