mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
mwan3: mwan3rtmon interrupt sleep on signal (trap) event
Sleep will be aborted if a signal is send to this process. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -25,7 +25,8 @@ main() {
|
||||
sleep 3
|
||||
while mwan3_rtmon_ipv4 || mwan3_rtmon_ipv6; do
|
||||
[ "$rtmon_interval" = "0" ] && break
|
||||
sleep $rtmon_interval
|
||||
sleep "$rtmon_interval" &
|
||||
wait
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user