Skip to content
Snippets Groups Projects
Commit f2d9bdab authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

Fix MAC address getters for current OpenWRT

parent c19b4efd
No related branches found
No related tags found
No related merge requests found
...@@ -34,10 +34,10 @@ EOF ...@@ -34,10 +34,10 @@ EOF
get_main_address() { get_main_address() {
case "$board" in case "$board" in
tl-wdr3600|tl-wdr4300) tl-wdr3600|tl-wdr4300)
uci get wireless.radio1.macaddr cat /sys/class/ieee80211/phy1/macaddress
;; ;;
*) *)
uci get wireless.radio0.macaddr cat /sys/class/ieee80211/phy0/macaddress
;; ;;
esac esac
} }
......
...@@ -7,7 +7,7 @@ board="$(ar71xx_board_name)" ...@@ -7,7 +7,7 @@ board="$(ar71xx_board_name)"
case "$board" in case "$board" in
tl-wdr3600|\ tl-wdr3600|\
tl-wdr4300) tl-wdr4300)
macaddr="$(uci get wireless.radio1.macaddr)" macaddr="$(cat /sys/class/ieee80211/phy1/macaddress)"
uci -q batch <<EOF uci -q batch <<EOF
set system.led_wlan2g.trigger='netdev' set system.led_wlan2g.trigger='netdev'
...@@ -23,7 +23,7 @@ tl-wdr4300) ...@@ -23,7 +23,7 @@ tl-wdr4300)
EOF EOF
;; ;;
*) *)
macaddr="$(uci get wireless.radio0.macaddr)" macaddr="$(cat /sys/class/ieee80211/phy0/macaddress)"
uci -q batch <<EOF uci -q batch <<EOF
set system.led_wlan.trigger='netdev' set system.led_wlan.trigger='netdev'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment