mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
layer2interface: when adding device to network config run ubus call network reload
This commit is contained in:
parent
1f9ba0a4fd
commit
77d8c53c77
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue