mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix macvlan port change
This commit is contained in:
parent
6b77296373
commit
1485da1b8c
1 changed files with 11 additions and 0 deletions
|
@ -27,6 +27,17 @@ _setup_interface() {
|
||||||
commit network
|
commit network
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
[ "$_type" = "macvlan" ] && {
|
||||||
|
local _interface
|
||||||
|
config_get _interface "$1" interface
|
||||||
|
[ -n "$_interface" ] && {
|
||||||
|
uci -q batch <<-EOF
|
||||||
|
delete network.$1.interface
|
||||||
|
set network.$1_dev.ifname=$_interface
|
||||||
|
commit network
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue