* Yousong Zhou <yszhou4t...@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

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to