diff options
author | Florian Eckert <fe@dev.tdt.de> | 2018-06-21 13:14:12 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2018-09-24 10:20:35 +0200 |
commit | d338131f408cf6402ab2ec9207670f09cdbd803b (patch) | |
tree | 26a0c4159f3c9bfaff5bf9fed825412b952a91b4 /net | |
parent | c9d8fceb63a425f19fc12bee7ee4191fad514b6e (diff) |
net/mwan3: mwan3track should also send disconnected action on signal USR1
Also send disconnected action on system signal USR1.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'net')
-rwxr-xr-x | net/mwan3/files/usr/sbin/mwan3track | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mwan3/files/usr/sbin/mwan3track b/net/mwan3/files/usr/sbin/mwan3track index 923bd7bfa..c2ebb3e9f 100755 --- a/net/mwan3/files/usr/sbin/mwan3track +++ b/net/mwan3/files/usr/sbin/mwan3track @@ -239,8 +239,10 @@ main() { wait if [ "${IFDOWN_EVENT}" -eq 1 ]; then - score=0 echo "offline" > /var/run/mwan3track/$1/STATUS + $LOG notice "Interface $1 ($2) is offline" + env -i ACTION="disconnected" INTERFACE="$1" DEVICE="$2" /sbin/hotplug-call iface + score=0 IFDOWN_EVENT=0 fi done |