2008-11-28 11:44:14 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
# Nico Schottelius, 20080910 11:09
|
2009-04-17 18:09:01 +00:00
|
|
|
# The initial version
|
|
|
|
#
|
|
|
|
# udhcpc -nfqi wlan0 && vpnc ~nico/ethz/vpn/pc.conf
|
|
|
|
#
|
|
|
|
# Failed due to many reasons. See the working hack/version below.
|
|
|
|
#
|
|
|
|
#
|
2009-01-30 11:28:47 +00:00
|
|
|
#ip link set wlan0 down
|
|
|
|
#iwconfig wlan0 essid public
|
|
|
|
#ip link set wlan0 up
|
|
|
|
#iwconfig wlan0 essid public
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2009-03-09 10:22:43 +00:00
|
|
|
ip l s eth0 down
|
2009-01-30 11:28:47 +00:00
|
|
|
( wpa_cli terminate; exit 0 )
|
2009-03-09 10:22:43 +00:00
|
|
|
rmmod iwlagn
|
|
|
|
modprobe iwlagn
|
2009-01-30 11:28:47 +00:00
|
|
|
sleep 2
|
|
|
|
wpa_supplicant -B -Dwext -iwlan0 -c ~nico/ethz/wlan/wpa_supplicant.conf
|
|
|
|
sleep 5
|
2008-11-28 11:44:14 +00:00
|
|
|
udhcpc -nqfi wlan0
|
2009-01-30 11:28:47 +00:00
|
|
|
vpnc ~nico/ethz/vpn/pc.conf
|
|
|
|
|
|
|
|
#vpnc ~nico/firmen/ethz/vpn/vpnc.conf
|
|
|
|
# vpnc-disconnect
|
2009-04-17 18:09:01 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|