bugfix: "wifi" network isn't yet defined during firstboot so hard code interface names to eth0 and wlan0

ref AREDN->ticket:115
This commit is contained in:
Conrad Lara - KG6JEI 2015-06-30 22:17:45 -07:00
parent 28d5b160c1
commit 794c00c7c6
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ if [ ! -f /etc/aredn_include/ethmacfixup ]
then
mkdir -p /etc/aredn_include
touch /etc/aredn_include/ethmacfixup
local lanintf=`uci -q get 'network.lan.ifname'`
local wifiintf=`uci -q get 'network.wifi.ifname'`
local lanintf="eth0"
local wifiintf="wlan0"
local lanmac=`ifconfig $lanintf | grep -o -E '([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}'`
local wifimac=`ifconfig $wifiintf | grep -o -E '([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}'`