|
|
@ -16,11 +16,11 @@ config_load mwan3 |
|
|
|
config_get_bool enabled globals 'enabled' '0' |
|
|
|
[ ${enabled} -gt 0 ] || exit 0 |
|
|
|
|
|
|
|
mwan3_lock |
|
|
|
mwan3_lock "$ACTION" "$INTERFACE" |
|
|
|
mwan3_init |
|
|
|
mwan3_set_connected_iptables |
|
|
|
mwan3_set_custom_ipset |
|
|
|
mwan3_unlock |
|
|
|
mwan3_unlock "$ACTION" "$INTERFACE" |
|
|
|
|
|
|
|
config_get enabled $INTERFACE enabled 0 |
|
|
|
config_get initial_state $INTERFACE initial_state "online" |
|
|
@ -58,7 +58,7 @@ else |
|
|
|
running=1 |
|
|
|
fi |
|
|
|
|
|
|
|
mwan3_lock |
|
|
|
mwan3_lock "$ACTION" "$INTERFACE" |
|
|
|
$LOG notice "Execute "$ACTION" event on interface $INTERFACE (${DEVICE:-unknown})" |
|
|
|
|
|
|
|
case "$ACTION" in |
|
|
@ -91,6 +91,6 @@ case "$ACTION" in |
|
|
|
;; |
|
|
|
esac |
|
|
|
|
|
|
|
mwan3_unlock |
|
|
|
mwan3_unlock "$ACTION" "$INTERFACE" |
|
|
|
|
|
|
|
exit 0 |