net/mwan3: registrate SIGUSR1 trap on interface down event
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 6 Apr 2017 13:41:05 +0000 (15:41 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 11 Apr 2017 07:46:20 +0000 (09:46 +0200)
commitb216fd36428e9827b1de9a37635a7749a2f4dc6b
treea9dfe44342cc24200c57d02f3d7c834520ca593e
parent84df06e0dc362c6300117a0dc492de069c391f4e
net/mwan3: registrate SIGUSR1 trap on interface down event

If interface is getting down by netifd (unplug ethernet cable)
mwan3track will not recognize this change. It will also generate an
additional down event when he notice does his tracking interface is offline.

Mwan3track will now be informed by a signal (trap) USR1 during down event
that the interface is already down. An additional down event will not be
generated.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/etc/hotplug.d/iface/15-mwan3
net/mwan3/files/lib/mwan3/mwan3.sh
net/mwan3/files/usr/sbin/mwan3track