1
0
Fork 0
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:
Ycarus 2018-06-27 19:57:08 +02:00
parent 6b77296373
commit 1485da1b8c

View file

@ -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
}