mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
mwan3: fix hotplug issues from 1f1d21
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
This commit is contained in:
@@ -40,7 +40,7 @@ mwan3_init
|
|||||||
mwan3_set_connected_${family}
|
mwan3_set_connected_${family}
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$MWAN3_STARTUP" != 1 ] && [ "$ACTION" = "ifup" ]; then
|
if [ "$MWAN3_STARTUP" != "init" ] && [ "$ACTION" = "ifup" ]; then
|
||||||
mwan3_set_user_iface_rules $INTERFACE $DEVICE
|
mwan3_set_user_iface_rules $INTERFACE $DEVICE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ case "$ACTION" in
|
|||||||
mwan3_create_iface_iptables $INTERFACE $DEVICE
|
mwan3_create_iface_iptables $INTERFACE $DEVICE
|
||||||
mwan3_create_iface_rules $INTERFACE $DEVICE
|
mwan3_create_iface_rules $INTERFACE $DEVICE
|
||||||
mwan3_set_iface_hotplug_state $INTERFACE "$status"
|
mwan3_set_iface_hotplug_state $INTERFACE "$status"
|
||||||
if [ "$MWAN3_STARTUP" = "cmd" ]; then
|
if [ "$MWAN3_STARTUP" != "init" ]; then
|
||||||
mwan3_create_iface_route $INTERFACE $DEVICE
|
mwan3_create_iface_route $INTERFACE $DEVICE
|
||||||
mwan3_set_general_rules
|
mwan3_set_general_rules
|
||||||
[ "$status" = "online" ] && mwan3_set_policies_iptables
|
[ "$status" = "online" ] && mwan3_set_policies_iptables
|
||||||
|
|||||||
Reference in New Issue
Block a user