add old script

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
Nico Schottelius 2014-11-26 22:20:19 +01:00
parent 1b109de1f4
commit f78acbf595
1 changed files with 15 additions and 0 deletions

15
changetowifi Normal file
View File

@ -0,0 +1,15 @@
case "$1" in
home)
ifconfig eth0 down
iwconfig eth1 essid ELSAAIR
iwconfig eth1 key fa:fb:fc:01:02
iwconfig eth1 key restricted
ifconfig eth1 192.168.1.5 up
route add default gw 192.168.1.2
;;
*)
echo bla so nich
exit 1
;;
esac