mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix for macvlan
This commit is contained in:
parent
609b173ffa
commit
34e3f74a97
1 changed files with 10 additions and 8 deletions
|
@ -55,6 +55,7 @@ _create_interface() {
|
||||||
commit macvlan
|
commit macvlan
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
[ "$(uci -q get network.$_ifname.masterintf)" != "$_masterifname" ] && {
|
||||||
logger -t "MACVLAN" "Create interface $_ifname based on $_masterifname"
|
logger -t "MACVLAN" "Create interface $_ifname based on $_masterifname"
|
||||||
uci batch <<-EOF
|
uci batch <<-EOF
|
||||||
set network.$_ifname=interface
|
set network.$_ifname=interface
|
||||||
|
@ -64,6 +65,7 @@ _create_interface() {
|
||||||
commit network
|
commit network
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Configuration by interface
|
# Configuration by interface
|
||||||
_setup_interface() {
|
_setup_interface() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue