svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/luci-app-adbyby-plus
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/adbyby
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/luci-app-frpc
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/frpc
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/luci-app-ttyd
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/vsftpd-alt
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/luci-app-vsftpd
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/autosamba
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/luci-app-vlmcsd
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/vlmcsd
更新上面package里需要的依赖feeds
./scripts/feeds update -a
./scripts/feeds install luci uci libubox lua libev
uci del dhcp.lan.dhcp_option
uci add_list dhcp.lan.dhcp_option='6,223.5.5.5,223.6.6.6'
# /etc/config/network
uci del network.lan.dns
uci add_list network.lan.dns='223.5.5.5'
uci add_list network.lan.dns='223.6.6.6'
编译的默认设置
xxx@debian:~/openwrt/openwrt-imagebuilder-22.03.5-ramips-mt7620.Linux-x86_64$ cat files/etc/uci-defaults/abc.sh
#!/bin/sh
uci add_list dhcp.@dnsmasq[0].confdir=/etc/dnsmasq.d
uci add_list dhcp.@dnsmasq[0].cachesize=10000
uci commit dhcp
uci set luci.main.lang=zh_cn
uci commit luci
uci set system.@system[0].hostname='Lenovo'
uci set system.@system[0].timezone=CST-8
uci set system.@system[0].zonename=Asia/Shanghai
uci commit system
uci del dhcp.lan.dhcp_option
uci add_list dhcp.lan.dhcp_option='6,223.5.5.5,223.6.6.6'
# /etc/config/network
uci del network.lan.dns
uci add_list network.lan.dns='223.5.5.5'
uci add_list network.lan.dns='223.6.6.6'
uci set network.lan.ipaddr='192.168.99.1'
uci commit
sed -i '/option disabled/d' /etc/config/wireless
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh
sed -i 's/OpenWrt/Lenovo/' /lib/wifi/mac80211.sh
cat >> /etc/profile <<EOF
export PS1='[\[\033[35;1m\]\u\[\033[0m\]@\[\033[31;1m\]\h\[\033\[0m\]:\[\033[32;1m\]$PWD\[\033[0m\]]\$ '
alias df='df -Th'
alias free='free -m'
alias la='ll -A'
alias ll='ls -alh --color=auto'
alias ls='ls --color=auto'
[ -x /bin/more ] || alias more=less
[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
alias ll='ls -alF --color=auto'
EOF
exit 0
无线密码
# /etc/config/wireless
uci set wireless.radio0.cell_density='0'
uci set wireless.default_radio0.ssid='Lenovo-5G'
uci set wireless.default_radio0.encryption='psk2'
uci set wireless.default_radio0.key='---------'
uci set wireless.radio1.cell_density='0'
uci set wireless.default_radio1.ssid='Lenovo'
uci set wireless.default_radio1.encryption='psk2'
uci set wireless.default_radio1.key='----------'