1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00

Fix Macvlan delete

This commit is contained in:
Ycarus 2018-06-29 18:27:37 +02:00
parent 5baee9a93e
commit 7af4db3af7

View file

@ -17,6 +17,17 @@ _setup_interface() {
eth*.*) return ;; eth*.*) return ;;
esac esac
[[ $1 =~ "_dev" ]] && {
local _intfdev=$(sed 's/_dev//' $1)
uci -q get "network.$_intfdev.ifname" >/dev/null && {
uci -q batch <<-EOF
delete network.$1
commit network
EOF
}
return
}
local _type local _type
config_get _type "$1" type config_get _type "$1" type