layer2interface: when adding device to network config run ubus call network reload

This commit is contained in:
Sukru Senli 2017-12-29 19:33:33 +01:00
parent 1f9ba0a4fd
commit 77d8c53c77
2 changed files with 3 additions and 3 deletions

View file

@ -127,7 +127,7 @@ configure_atm() {
xtmctl operate intf --state 1 enable
configure_untagged_vlan "$name" "$baseifname" "$ifname"
[ $DEVICE_ADDED -eq 1 ] && ubus call uci commit '{"config":"network"}'
[ $DEVICE_ADDED -eq 1 ] && ubus call network reload
fi
}
@ -207,7 +207,7 @@ configure_ptm() {
xtmctl operate intf --state 1 enable
configure_untagged_vlan "$name" "$baseifname" "$ifname"
[ $DEVICE_ADDED -eq 1 ] && ubus call uci commit '{"config":"network"}'
[ $DEVICE_ADDED -eq 1 ] && ubus call network reload
fi
}

View file

@ -73,7 +73,7 @@ start_service() {
config_load layer2_interface_vlan
config_foreach configure_vlan_iface vlan_interface
[ $DEVICE_ADDED -eq 1 ] && ubus call uci commit '{"config":"network"}'
[ $DEVICE_ADDED -eq 1 ] && ubus call network reload
}
boot() {