add eth/lan-up.sh and move eth/wlan-vpn.sh
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
0af7ef678a
commit
e8e6ad2df6
2 changed files with 7 additions and 0 deletions
7
eth/lan-up.sh
Normal file
7
eth/lan-up.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
# Use the lan instead of the wlan
|
||||
|
||||
wpa_cli terminate
|
||||
killall vpnc
|
||||
ip l s wlan0 down
|
||||
ip l s eth0 up
|
||||
21
eth/wlan-vpn.sh
Executable file
21
eth/wlan-vpn.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh -e
|
||||
# Nico Schottelius, 20080910 11:09
|
||||
#ip link set wlan0 down
|
||||
#iwconfig wlan0 essid public
|
||||
#ip link set wlan0 up
|
||||
#iwconfig wlan0 essid public
|
||||
|
||||
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
|
||||
udhcpc -nqfi wlan0
|
||||
vpnc ~nico/ethz/vpn/pc.conf
|
||||
|
||||
#vpnc ~nico/firmen/ethz/vpn/vpnc.conf
|
||||
# vpnc-disconnect
|
||||
Loading…
Add table
Add a link
Reference in a new issue