mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Little fix for macvlan
This commit is contained in:
parent
7d393eb9db
commit
994a39c1b8
1 changed files with 2 additions and 1 deletions
|
@ -34,6 +34,7 @@ _save_macaddr() {
|
||||||
_setup_interface() {
|
_setup_interface() {
|
||||||
local _ifname
|
local _ifname
|
||||||
config_get _ifname "$1" ifname
|
config_get _ifname "$1" ifname
|
||||||
|
[ -z "$_ifname" ] && config_get _ifname "$1" ifname
|
||||||
# do not create macvlan for vlan
|
# do not create macvlan for vlan
|
||||||
#case "$_ifname" in
|
#case "$_ifname" in
|
||||||
# eth*.*) return ;;
|
# eth*.*) return ;;
|
||||||
|
@ -64,7 +65,7 @@ _setup_interface() {
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
[ "$_type" = "macvlan" ] && {
|
[ "$_type" = "macvlan" ] && {
|
||||||
local _interface
|
local interface
|
||||||
config_get _interface "$1" interface
|
config_get _interface "$1" interface
|
||||||
[ -n "$_interface" ] && {
|
[ -n "$_interface" ] && {
|
||||||
uci -q batch <<-EOF
|
uci -q batch <<-EOF
|
||||||
|
|
Loading…
Reference in a new issue