This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
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>
lilik-openwrt-22.03
Florian Eckert
7 years ago
parent
c9d8fceb63
commit
d338131f40
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
net/mwan3/files/usr/sbin/mwan3track
+ 3
- 1
net/mwan3/files/usr/sbin/mwan3track
View File
@ -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
Write
Preview
Loading…
Cancel
Save