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:
parent
5baee9a93e
commit
7af4db3af7
1 changed files with 11 additions and 0 deletions
|
@ -17,6 +17,17 @@ _setup_interface() {
|
|||
eth*.*) return ;;
|
||||
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
|
||||
config_get _type "$1" type
|
||||
|
||||
|
|
Loading…
Reference in a new issue