|
@ -221,11 +221,7 @@ main() { |
|
|
|
|
|
|
|
|
if [ $score -eq $up ]; then |
|
|
if [ $score -eq $up ]; then |
|
|
echo "offline" > /var/run/mwan3track/$1/STATUS |
|
|
echo "offline" > /var/run/mwan3track/$1/STATUS |
|
|
echo "0" > /var/run/mwan3track/$1/UPTIME |
|
|
|
|
|
echo "$(get_uptime)" > /var/run/mwan3track/$1/DOWNTIME |
|
|
|
|
|
$LOG notice "Interface $1 ($2) is offline" |
|
|
|
|
|
env -i ACTION=ifdown INTERFACE=$1 DEVICE=$2 /sbin/hotplug-call iface |
|
|
env -i ACTION=ifdown INTERFACE=$1 DEVICE=$2 /sbin/hotplug-call iface |
|
|
env -i ACTION="disconnected" INTERFACE="$1" DEVICE="$2" /sbin/hotplug-call iface |
|
|
|
|
|
score=0 |
|
|
score=0 |
|
|
fi |
|
|
fi |
|
|
else |
|
|
else |
|
|