个性化编译LEDE


修改默认中文和主题

修改位置:source/feeds/luci/modules/luci-base/root/etc/config/luci

config core main
option lang zh_ch
option mediaurlbase /luci-static/atmaterial
option resourcebase /luci-static/resources

修改WIFI名称

修改位置:source/package/kernel/mac80211/files/lib/wifi/mac80211.sh

        set wireless.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密码

修改lan和时区

修改位置:source/package/base-files/files/bin/config_generate

lan) ipad=${ipaddr:-"192.168.10.1"} ;;#修改ip为192.168.10.1


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='CST-8'#正八区
        set system.@system[-1].zonename='Asia/Shanghai'#这句话要加上,不然还是UTC

添加第三方源码ipk

把第三方ipk源码的package包放进source/feeds/packages目录
把第三方ipk源码的luci包放进source/feeds/luci/applications目录
主题放入source/feeds/luci/themes
然后运行下面的命令:

./scripts/feeds update luci
./scripts/feeds install -a -p luci
./scripts/feeds update packages
./scripts/feeds install -a -p packages


修改默认root密码

修改位置:source/package/base-files/files/etc/shadow

        root:$1$wEehtjxj$YBu4quNfVUjzfv8p/PBo5.:0:0:99999:7:::

你可能感兴趣的:(路由器)