mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
mwan3: do not wait to process ifup/ifdown events
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
This commit is contained in:
@@ -345,8 +345,12 @@ main() {
|
|||||||
get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/TIME
|
get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/TIME
|
||||||
|
|
||||||
host_up_count=0
|
host_up_count=0
|
||||||
sleep "${sleep_time}" &
|
if [ "${IFDOWN_EVENT}" -ne 0 ] && [ "${IFUP_EVENT}" -ne 0 ]; then
|
||||||
wait
|
sleep "${sleep_time}" &
|
||||||
|
SLEEP_PID=$!
|
||||||
|
wait
|
||||||
|
unset SLEEP_PID
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${IFDOWN_EVENT}" -eq 1 ]; then
|
if [ "${IFDOWN_EVENT}" -eq 1 ]; then
|
||||||
LOG debug "Register ifdown event on interface ${INTERFACE} (${DEVICE})"
|
LOG debug "Register ifdown event on interface ${INTERFACE} (${DEVICE})"
|
||||||
|
|||||||
Reference in New Issue
Block a user