mirror of https://github.com/aredn/aredn.git
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:
parent
28d5b160c1
commit
794c00c7c6
|
@ -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}'`
|
||||
|
||||
|
|
Loading…
Reference in New Issue