diff --git a/changetowifi b/changetowifi new file mode 100644 index 0000000..5b5c17c --- /dev/null +++ b/changetowifi @@ -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