mwan3: fix hotplug issues from 1f1d21
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
This commit is contained in:
parent
9e424325b5
commit
eb3acf926f
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ mwan3_init
|
|||
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
|
||||
fi
|
||||
|
||||
|
@ -69,7 +69,7 @@ case "$ACTION" in
|
|||
mwan3_create_iface_iptables $INTERFACE $DEVICE
|
||||
mwan3_create_iface_rules $INTERFACE $DEVICE
|
||||
mwan3_set_iface_hotplug_state $INTERFACE "$status"
|
||||
if [ "$MWAN3_STARTUP" = "cmd" ]; then
|
||||
if [ "$MWAN3_STARTUP" != "init" ]; then
|
||||
mwan3_create_iface_route $INTERFACE $DEVICE
|
||||
mwan3_set_general_rules
|
||||
[ "$status" = "online" ] && mwan3_set_policies_iptables
|
||||
|
|
Loading…
Reference in a new issue