Hi,
please I need some tips in building Openwrt from source to make the name of wifi appear as OpenWrt_XXXX since XXXX the last 4 digits of the mac address.
thanks
Hi,
Just add few lines into the scripts those change the SSID name.
2 Likes
how to add XXXX the last 4 digits of the mac address in every device
could this be something ?
check if the SSID is OpenWRT, if it isn't, terminate, otherwise, make the changes.
Hi, modify file: package/kernel/mac80211/files/lib/wifi/mac80211.sh
to generate all in /etc/config/wireless
the ssid line:
set wireless.wifi_ap${devidx}.ssid=OpenWrt_$(cat /sys/class/ieee80211/${dev}/macaddress|awk -F ":" '{print $3""$4""$5""$6 }'| tr a-z A-Z)
$3""$4""$5""$6
take the last 4 chars.
tr a-z A-Z
convert it to upper case.
3 Likes