mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix default network
This commit is contained in:
parent
98d4f68dd9
commit
bd8a21bfbc
1 changed files with 22 additions and 20 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
. /lib/functions.sh
|
||||
|
||||
_setup_macaddr() {
|
||||
uci -q get "network.$1_dev.macaddr" >/dev/null && return
|
||||
uci -q set "network.$1_dev.macaddr=$2"
|
||||
|
@ -27,7 +29,7 @@ _setup_macvlan() {
|
|||
uci -q set "network.$1.type=macvlan" # legacy
|
||||
}
|
||||
|
||||
if [ "$(uci show network | grep wan)" = "" ]; then
|
||||
if [ "$(uci -q show network | grep wan)" = "" ]; then
|
||||
uci -q batch <<-EOF
|
||||
set network.wan1=interface
|
||||
set network.wan1.ifname=eth0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue