mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 19:41:51 +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
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue