#!/bin/sh SHORT_NAME="realraumwireless" DESC_NAME="realraum WIRELESS" INTERFACE="{{ ws_minet_wireless_interface_name }}" MODULE_NAME="{{ ws_minet_wireless_interface_module }}" SSID="realraum5" #SSID="realtest5" . /usr/local/lib/minet/minet_helpers.sh case "$1" in start|"") echo "Connecting with $DESC_NAME" activate_interface $INTERFACE $MODULE_NAME wpa_supplicant -c/etc/wpa_supplicant.conf -i$INTERFACE -Dnl80211 -B wpa_select_ssid $INTERFACE "$SSID" ip link set up dev $INTERFACE ip addr add dev $INTERFACE 89.106.211.60/27 ip route add default via 89.106.211.33 #ip -6 addr add dev $INTERFACE 2a02:3e0:4000:1::60/64 #ip -6 route add default via 2a02:3e0:4000:1::1 echo "domain realraum.at\nnameserver 89.106.211.33" | resolvconf -a $INTERFACE ;; stop) echo "Disconnecting from $DESC_NAME" killall wpa_supplicant deactivate_interface $INTERFACE $MODULE_NAME resolvconf -d $INTERFACE ;; *) exit 1 ;; esac