forked from Ivasoft/openwrt
ramips: read label MAC address from flash instead of using phy0/phy1
This replaces all uses of $(cat /sys/class/ieee80211/phyX/macaddress) by retrieval from the proper flash locations. This will make 02_network independent of WiFi setup again. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
@@ -134,7 +134,7 @@ ramips_setup_macs()
|
||||
;;
|
||||
cudy,wr1000)
|
||||
wan_mac=$(mtd_get_mac_binary factory 0x2e)
|
||||
label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
|
||||
label_mac=$(mtd_get_mac_binary factory 0x8)
|
||||
;;
|
||||
duzun,dm06|\
|
||||
mediatek,mt7628an-eval-board|\
|
||||
@@ -192,7 +192,7 @@ ramips_setup_macs()
|
||||
;;
|
||||
vocore,vocore2|\
|
||||
vocore,vocore2-lite)
|
||||
label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
|
||||
label_mac=$(mtd_get_mac_binary factory 0x8)
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user