From a63e890e5df0e0d61da43b466eea2f85f5036319 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 9 Mar 2009 11:22:43 +0100 Subject: [PATCH] ETH: link down of eth0, reinsert iwlagn Signed-off-by: Nico Schottelius --- eth-wlan-vpn.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth-wlan-vpn.sh b/eth-wlan-vpn.sh index 2c11d7a..0761bca 100755 --- a/eth-wlan-vpn.sh +++ b/eth-wlan-vpn.sh @@ -7,7 +7,10 @@ set -x +ip l s eth0 down ( wpa_cli terminate; exit 0 ) +rmmod iwlagn +modprobe iwlagn sleep 2 wpa_supplicant -B -Dwext -iwlan0 -c ~nico/ethz/wlan/wpa_supplicant.conf sleep 5