1
0
Fork 0
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:
Ycarus 2018-02-15 13:54:45 +01:00
parent 98d4f68dd9
commit bd8a21bfbc

View file

@ -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