#!/bin/sh logger -t DSL "$DSL_NOTIFICATION_TYPE $DSL_INTERFACE_STATUS" if [ "$DSL_NOTIFICATION_TYPE" = "DSL_INTERFACE_STATUS" ] && [ "$DSL_INTERFACE_STATUS" = "UP" ]; then logger -t DSL "DSL interface UP, starting wpa_supplicant..." /usr/sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.pid -D wired -i dsl0 -b br-br0 -c /etc/wpa_supplicant/wpa_supplicant.conf ip link set eth0 down sleep 5 ip link set eth0 up fi if [ "$DSL_NOTIFICATION_TYPE" = "DSL_INTERFACE_STATUS" ] && [ "$DSL_INTERFACE_STATUS" = "DOWN" ]; then logger -t DSL "DSL interface DOWN, killing wpa_supplicant..." if [ -e /var/run/wpa_supplicant.pid ]; then kill $(cat /tmp/run/wpa_supplicant.pid) fi ip link set eth0 down fi