[LEDE-DEV] [PATCH] mac80211: change default SSID from Lede to LEDE

Yousong Zhou yszhou4tech at gmail.com
Tue May 24 19:58:19 PDT 2016


On 25 May 2016 at 07:52,  <jo at mein.io> wrote:
> Hi,
>
>> How about
>>
>> option ssid Lede-$(cat /sys/class/ieee80211/${dev}/macaddress | awk -F
>> ":" '{print $4""$5""$6 }'| tr a-z A-Z)
>
> Or with sed:
>
> sed -ne 'y/abcdef/ABCDEF/; 1s/^.*:\(..\):\(..\):\(..\)$/\1\2\3/p' \
>         /sys/class/ieee80211/${dev}/macaddress
>

Or with awk:

awk -F: '{ print toupper($4$5$6) }' /sys/class/ieee80211/phy0/macaddress

                yousong

> ~ Jo
>
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev



More information about the Lede-dev mailing list