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
|
then
|
||||||
mkdir -p /etc/aredn_include
|
mkdir -p /etc/aredn_include
|
||||||
touch /etc/aredn_include/ethmacfixup
|
touch /etc/aredn_include/ethmacfixup
|
||||||
local lanintf=`uci -q get 'network.lan.ifname'`
|
local lanintf="eth0"
|
||||||
local wifiintf=`uci -q get 'network.wifi.ifname'`
|
local wifiintf="wlan0"
|
||||||
local lanmac=`ifconfig $lanintf | grep -o -E '([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}'`
|
local lanmac=`ifconfig $lanintf | grep -o -E '([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}'`
|
||||||
local wifimac=`ifconfig $wifiintf | 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