Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
customize [2018/02/26 08:31]
admin [修改机器名字]
customize [2019/03/10 22:27] (current)
Line 41: Line 41:
 openwrt_widora/​package/​base-files/​files/​etc/​config/​system 文件中的hostname openwrt_widora/​package/​base-files/​files/​etc/​config/​system 文件中的hostname
  
-====用户自己编译好的程序预装入文件系统==== +====修改WI-FI名字==== 
 +{{::​wifiname.png|}}
  
 +==临时修改==
 +/​etc/​config/​wireless
 +<code bash>
 +config wifi-iface ap
 +        option device ​  ​radio0
 +        option mode     ap
 +        option network ​ lan
 +        option ifname ​  ra0
 +        option ssid     ​Widora-0648
 +        option encryption none
 +        option hidden ​   0
 +</​code>​
 +修改ssid后的字符串即可。
  
 +==永久修改==
 +openwrt_widora/​package/​mtk-wifi/​files/​lib/​wifi/​ralink.sh
 +<code bash>
 +config wifi-iface ap
 +        option device ​  ​radio0
 +        option mode     ap
 +        option network ​ lan
 +        option ifname ​  $dev
 +        option ssid     ​Widora-$(cat /​sys/​class/​net/​eth0/​address|awk -F ":"​ '​{print $5""​$6}'​| tr a-z A-Z)
 +        option encryption none 
 +        option hidden ​   0
 +</​code>​
 +修改ssid后的字符串,这里用到了mac地址,建议仅修改Widora字眼即可。
  
  • Last modified: 6 months ago
  • (external edit)