mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
layer2interface: commit uci network changes before reloading network
This commit is contained in:
parent
1e1dc5ec35
commit
d692ab5920
2 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ configure_untagged_vlan() {
|
|||
uci -q set network.$name.type=untagged
|
||||
uci -q set network.$name.ifname="$baseifname"
|
||||
uci -q set network.$name.name="$ifname"
|
||||
uci -q commit network
|
||||
|
||||
DEVICE_ADDED=1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ configure_vlan_iface() {
|
|||
uci -q set network.$name.vid="$vlan8021q"
|
||||
uci -q set network.$name.ifname="$baseifname"
|
||||
uci -q set network.$name.name="$ifname"
|
||||
uci -q commit network
|
||||
|
||||
DEVICE_ADDED=1
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue