update wlan script

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-08 14:44:17 +02:00
parent 80ef9cd521
commit d4421e8605
1 changed files with 8 additions and 6 deletions

View File

@ -15,17 +15,19 @@
set -x
#ip l s eth0 down
# Ensure previous wpa_supplicant is not running
( wpa_cli terminate || exit 0 )
# ( rmmod iwlagn; modprobe iwlagn; sleep 2 )
# Ensure the adapter works, reloading the driver helps
( rmmod iwlagn; modprobe iwlagn; sleep 2 )
wpa_supplicant -B -Dwext -iwlan0 -c ~nico/ethz/wlan/wpa_supplicant.conf
# Give wpa some time to connect
sleep 5
( udhcpc -nqfi wlan0 || dhcpcd wlan0 )
vpnc ~nico/ethz/vpn/sg.conf
# Choose an dhcp client
( udhcpc -nqfi wlan0 || dhcpcd wlan0 )
# vpnc ~nico/ethz/vpn/sg.conf
#vpnc ~nico/firmen/ethz/vpn/vpnc.conf
# vpnc-disconnect
#!/bin/sh