#18301: Mac in wifi ssid
----------------------+-----------------------------------
 Reporter:  thomas@…  |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  high      |  Milestone:
Component:  packages  |    Version:  Barrier Breaker 14.07
 Keywords:            |
----------------------+-----------------------------------
 With Imageroot of barrier breaker, how can I enter in the MAC of the wifi
 ssid?

 If I do this https://dev.openwrt.org/ticket/11621#no1

 router will not start

 -------Funcions.sh-------------
 add:
 mac_ssid(){
                 local mac=${1:9:2}${1:12:2}${1:15:2}
                 local info=$(cat /proc/cmdline)
                 info=${info##*board=}
                 info=${info%% *}
                 echo $mac|tr a-z A-Z
         }

 [ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh


 ------mac80211.sh----------------

 modify:

 config wifi-iface
         option device   radio$devidx
         option network  lan
         option mode     ap
         option ssid     WIFI_$(mac_ssid $(cat
 /sys/class/ieee80211/${dev}/macaddress))
         option encryption psk2

 EOF
 --------------------------------

 in attitude adjustment everything worked correctly
 in barrier breacker version not work :(

--
Ticket URL: <https://dev.openwrt.org/ticket/18301>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to