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

Bastian Bittorf bittorf at bluebottle.com
Wed May 25 01:37:02 PDT 2016


* Yousong Zhou <yszhou4tech at gmail.com> [25.05.2016 07:28]:
> Or with awk:
> awk -F: '{ print toupper($4$5$6) }' /sys/class/ieee80211/phy0/macaddress

or this shell-nonforking-version with builtins:

default_SSID()
{
  read SSID </sys/class/ieee80211/phy0/macaddress
  set -- ${SSID//:/ }
  SSID="LEDE-$1$2$3"
}

bye, bastian



More information about the Lede-dev mailing list