1.修改主机名,设定时区,IP地址
打开/package/base-files/files/bin/config_generate文件,修改如下
- generate_static_system() {
- uci -q batch <<-EOF
- delete system.@system[0]
- add system system
- set system.@system[-1].hostname='LEDE'#修改主机名
- set system.@system[-1].timezone='Asia/Shanghai'#修改默认时区
- lan) ipad=${ipaddr:-"192.168.1.1"} ;;#修改默认IP
2.修改WIFI信息
打开/package/kernel/mac80211/files/lib/wifi/mac80211.sh文件,修改如下
- less.radio${devidx}.disabled=0#改为0自动打开wifi
- set wireless.default_radio${devidx}=wifi-iface
- set wireless.default_radio${devidx}.device=radio${devidx}
- set wireless.default_radio${devidx}.network=lan
- set wireless.default_radio${devidx}.mode=ap
- set wireless.default_radio${devidx}.ssid=LEDE#wifi名称
- set wireless.default_radio${devidx}.encryption=psk2#wifi加密方式,没有是none
- set wireless.default_radio${devidx}.key=password#wifi密码
3.SSH/TELNET显示信息修改方式:
打开/package/base-files/files/etc/banner文件