#! /bin/sh PATH=/sbin:$PATH uplink=$(grep ^uplink= /etc/musiikki.conf|sed 's/.*=\(.*\)/\1/') if [ -z "$uplink" ] then exit fi read wlan logger -t musiikki "WLAN: $wlan" ifdown ${uplink} > /dev/null 2>&1 rm -f /etc/network/interfaces.d/uplink.conf if [ -n "$wlan" ] then cd /etc/network/interfaces.d ln -s upstream_${wlan}.conf uplink.conf ifup ${uplink} > /dev/null 2>&1 fi