mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add a sleep to have different macaddress for macvlan
This commit is contained in:
parent
20d8ea6072
commit
aaea43b358
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ _setup_interface() {
|
||||||
config_get _type "$1" type
|
config_get _type "$1" type
|
||||||
[ "$_type" = "macvlan" ] || return 0
|
[ "$_type" = "macvlan" ] || return 0
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
|
||||||
uci -q batch <<-EOF
|
uci -q batch <<-EOF
|
||||||
set network.$1_dev=device
|
set network.$1_dev=device
|
||||||
set network.$1_dev.name=$1
|
set network.$1_dev.name=$1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue