int
This commit is contained in:
parent
5e37656cd4
commit
c9b68b65cf
86
diy/18.06.sh
86
diy/18.06.sh
|
@ -1,86 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
git clone https://github.com/garypang13/luci-app-dnsfilter
|
|
||||||
git clone -b 18.06 https://github.com/garypang13/luci-theme-edge
|
|
||||||
git clone https://github.com/tty228/luci-app-serverchan
|
|
||||||
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon
|
|
||||||
git clone https://github.com/jerrykuku/luci-app-argon-config
|
|
||||||
git clone https://github.com/jerrykuku/luci-app-vssr
|
|
||||||
git clone https://github.com/jerrykuku/luci-app-jd-dailybonus
|
|
||||||
git clone https://github.com/zzsj0928/luci-app-pushbot
|
|
||||||
git clone https://github.com/BCYDTZ/luci-app-UUGameAcc
|
|
||||||
git clone https://github.com/garypang13/luci-app-eqos
|
|
||||||
git clone https://github.com/BoringCat/luci-app-mentohust
|
|
||||||
git clone https://github.com/small-5/luci-app-xlnetacc
|
|
||||||
git clone https://github.com/project-lede/luci-app-godproxy
|
|
||||||
git clone https://github.com/sirpdboy/luci-app-advanced
|
|
||||||
git clone https://github.com/ntlf9t/luci-app-easymesh
|
|
||||||
git clone https://github.com/walkingsky/luci-wifidog luci-app-wifidog
|
|
||||||
git clone https://github.com/linkease/ddnsto-openwrt
|
|
||||||
svn co https://github.com/messense/aliyundrive-webdav/trunk/openwrt/aliyundrive-webdav
|
|
||||||
svn co https://github.com/messense/aliyundrive-webdav/trunk/openwrt/luci-app-aliyundrive-webdav
|
|
||||||
svn co https://github.com/garypang13/openwrt-bypass/trunk/luci-app-bypass
|
|
||||||
svn co https://github.com/garypang13/openwrt-bypass/trunk/lua-maxminddb
|
|
||||||
svn co https://github.com/garypang13/openwrt-bypass/trunk/smartdns-le
|
|
||||||
svn co https://github.com/garypang13/openwrt-packages/trunk/gost
|
|
||||||
svn co https://github.com/kenzok8/my-packages/trunk/luci-app-gpsysupgrade
|
|
||||||
svn co https://github.com/vernesong/OpenClash/trunk/luci-app-openclash
|
|
||||||
svn co https://github.com/frainzy1477/luci-app-clash/trunk ./luci-app-clash
|
|
||||||
svn co https://github.com/Tencent-Cloud-Plugins/tencentcloud-openwrt-plugin-ddns/trunk/tencentcloud_ddns luci-app-tencentddns
|
|
||||||
svn co https://github.com/fw876/helloworld/trunk/luci-app-ssr-plus
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/luci-app-passwall
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/naiveproxy
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/dns2socks
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/hysteria
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/ipt2socks
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/kcptun
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/pdnsd-alt
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/shadowsocks-rust
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/shadowsocksr-libev
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/simple-obfs
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/ssocks
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/brook
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/chinadns-ng
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/simple-obfs
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/tcping
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/trojan-go
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/trojan-plus
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/trojan
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/v2ray-core
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/v2ray-plugin
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/xray-core
|
|
||||||
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/xray-plugin
|
|
||||||
svn co https://github.com/sirpdboy/sirpdboy-package/trunk/luci-app-koolddns
|
|
||||||
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/microsocks
|
|
||||||
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/redsocks2
|
|
||||||
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/tcpping
|
|
||||||
svn co https://github.com/liuran001/openwrt-theme/trunk/luci-theme-argon-lr
|
|
||||||
svn co https://github.com/openwrt/packages/trunk/net/shadowsocks-libev
|
|
||||||
svn co https://github.com/immortalwrt/luci/trunk/applications/luci-app-aliddns
|
|
||||||
svn co https://github.com/immortalwrt/luci/trunk/applications/luci-app-udp2raw
|
|
||||||
svn co https://github.com/immortalwrt/packages/trunk/net/udp2raw-tunnel
|
|
||||||
svn co https://github.com/kenzok8/jell/trunk/luci-app-adguardhome
|
|
||||||
svn co https://github.com/kenzok8/jell/trunk/adguardhome
|
|
||||||
svn co https://github.com/immortalwrt/luci/trunk/applications/luci-app-smartdns
|
|
||||||
svn co https://github.com/immortalwrt/packages/trunk/net/smartdns
|
|
||||||
svn co https://github.com/immortalwrt/luci/trunk/applications/luci-app-gost
|
|
||||||
svn co https://github.com/kenzok8/litte/trunk/luci-theme-argon_new
|
|
||||||
svn co https://github.com/kenzok8/litte/trunk/luci-theme-opentopd_new
|
|
||||||
svn co https://github.com/kenzok8/litte/trunk/luci-theme-atmaterial_new
|
|
||||||
svn co https://github.com/kenzok8/litte/trunk/luci-theme-mcat
|
|
||||||
svn co https://github.com/kenzok8/litte/trunk/luci-theme-tomato
|
|
||||||
|
|
||||||
svn co https://github.com/immortalwrt/packages/trunk/admin/bpytop
|
|
||||||
svn co https://github.com/immortalwrt/packages/trunk/libs/jpcre2
|
|
||||||
svn co https://github.com/immortalwrt/packages/trunk/libs/wxbase
|
|
||||||
svn co https://github.com/immortalwrt/packages/trunk/libs/libcron
|
|
||||||
svn co https://github.com/immortalwrt/packages/trunk/libs/rapidjson
|
|
||||||
svn co https://github.com/immortalwrt/packages/trunk/libs/quickjspp
|
|
||||||
svn co https://github.com/immortalwrt/packages/trunk/libs/toml11
|
|
||||||
svn co https://github.com/garypang13/openwrt-packages/trunk/qtbase
|
|
||||||
svn co https://github.com/garypang13/openwrt-packages/trunk/qttools
|
|
||||||
svn co https://github.com/garypang13/openwrt-packages/trunk/rblibtorrent
|
|
||||||
|
|
||||||
|
|
||||||
rm -rf ./*/.git & rm -f ./*/.gitattributes
|
|
||||||
rm -rf ./*/.svn & rm -rf ./*/.github & rm -rf ./*/.gitignore
|
|
||||||
exit 0
|
|
|
@ -4,5 +4,5 @@
|
||||||
\___/ .__/\__/_//_/__,__/_/ \__/
|
\___/ .__/\__/_//_/__,__/_/ \__/
|
||||||
/_/
|
/_/
|
||||||
--------------------------------
|
--------------------------------
|
||||||
%D %V, %C
|
%D %V, by kenzo
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
|
@ -7,23 +7,11 @@ sed -i 's/192.168.1.1/192.168.3.1/g' openwrt/package/base-files/files/bin/config
|
||||||
|
|
||||||
date=`date +%m.%d`
|
date=`date +%m.%d`
|
||||||
date1=`date +%h`
|
date1=`date +%h`
|
||||||
sed -i "s/DISTRIB_DESCRIPTION=\"0penwrt'\"/g" package/base-files/files/etc/openwrt_release
|
sed -i "s/DISTRIB_DESCRIPTION.*/DISTRIB_DESCRIPTION=\'Openwrt\'/g" package/base-files/files/etc/openwrt_release
|
||||||
sed -i "s/DISTRIB_REVISION=\"$date'\"/g" package/base-files/files/etc/openwrt_release
|
sed -i "s/DISTRIB_REVISION.*/DISTRIB_REVISION=\'$date\'/g" package/base-files/files/etc/openwrt_release
|
||||||
sed -i "s/%C=\"$date1'\"/g" package/base-files/files/etc/openwrt_version
|
sed -i "s/DISTRIB_RELEASE.*/DISTRIB_RELEASE=\'$date1\'/g" package/base-files/files/etc/openwrt_release
|
||||||
sed -i "s/ %D %V, %C=\"v_$date1 by kenzo'\"/g" package/base-files/files/etc/banner
|
|
||||||
#Lean设置
|
|
||||||
sed -i "s/LuCI Master=\"kenzo'\"/g" package/lean/default-settings/files/zzz-default-settings
|
|
||||||
sed -i "s/luciversion=\"$date1'\"/g" package/lean/default-settings/files/zzz-default-settings
|
|
||||||
#ctc设置
|
|
||||||
sed -i "s/LuCI openwrt-18.06 branch=\"kenzo'\"/g" package/emortal/default-settings/files/zzz-default-settings
|
|
||||||
sed -i "s/LuCI openwrt-21.02 branch=\"kenzo'\"/g" package/emortal/default-settings/files/zzz-default-settings
|
|
||||||
sed -i "s/luciversion=\"$date1'\"/g" package/emortal/default-settings/files/zzz-default-settings
|
|
||||||
#Lienol设置
|
|
||||||
sed -i "s/17.01 Lienol=\"kenzo'\"/g" package/default-settings/files/zzz-default-settings
|
|
||||||
sed -i "s/luciversion=\"$date1'\"/g" package/default-settings/files/zzz-default-settings
|
|
||||||
|
|
||||||
# 修改自定义固件名,增加编译日期(by:kenzo)
|
|
||||||
sed -i "s/IMG_PREFIX:=$(VERSION_DIST_SANITIZED)=\"IMG_PREFIX:=$date-$(VERSION_DIST_SANITIZED)'\"/g" include/image.mk
|
|
||||||
|
|
||||||
|
#2. 修改自定义固件名,增加编译日期(by:kenzo)
|
||||||
|
sed -i "s/IMG_PREFIX:=$(VERSION_DIST_SANITIZED)=\"IMG_PREFIX:=$(shell date +%m-%d)-$(VERSION_DIST_SANITIZED)'\"/g" include/image.mk
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -45,19 +45,12 @@ echo '[ -n "$(command -v ip6tables)" ] && ip6tables -t nat -A PREROUTING -p tcp
|
||||||
sed -i '/option disabled/d' /etc/config/wireless
|
sed -i '/option disabled/d' /etc/config/wireless
|
||||||
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh
|
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh
|
||||||
|
|
||||||
uci set network.lan.ipaddr='192.168.1.252' # 默认IP地址
|
|
||||||
uci set network.lan.proto='static' # 静态IP
|
|
||||||
uci set network.lan.type='bridge' # 接口类型:桥接
|
|
||||||
uci set network.lan.ifname='eth0' # 网络端口:默认 eth0,第一个网口
|
|
||||||
uci set network.lan.netmask='255.255.255.0' # 子网掩码
|
|
||||||
uci set network.lan.gateway='192.168.1.251' # 默认网关地址(主路由IP)
|
|
||||||
uci set network.lan.dns='192.168.1.251 223.5.5.5 119.29.29.29' # 默认上游 DNS 地址
|
|
||||||
uci commit network
|
|
||||||
|
|
||||||
date=`date +%m.%d`
|
date=`date +%m.%d`
|
||||||
date1=`date +%h`
|
date1=`date +%h`
|
||||||
sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
|
sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
|
||||||
echo "DISTRIB_REVISION='v$date'" >> /etc/openwrt_release
|
echo "DISTRIB_REVISION='v$date'" >> /etc/openwrt_release
|
||||||
|
sed -i '/DISTRIB_RELEASE/d' /etc/openwrt_release
|
||||||
|
echo "DISTRIB_RELEASE='v$date1'" >> /etc/openwrt_release
|
||||||
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
|
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
|
||||||
echo "DISTRIB_DESCRIPTION='Openwrt '" >> /etc/openwrt_release
|
echo "DISTRIB_DESCRIPTION='Openwrt '" >> /etc/openwrt_release
|
||||||
|
|
||||||
|
@ -66,7 +59,7 @@ sed -i 's/LuCI openwrt-18.06 branch/kenzo/g' /usr/lib/lua/luci/version.lua
|
||||||
sed -i 's/LuCI 17.01 Lienol/kenzo/g' /usr/lib/lua/luci/version.lua
|
sed -i 's/LuCI 17.01 Lienol/kenzo/g' /usr/lib/lua/luci/version.lua
|
||||||
sed -i 's/LuCI openwrt-21.02 branch/kenzo/g' /usr/lib/lua/luci/version.lua
|
sed -i 's/LuCI openwrt-21.02 branch/kenzo/g' /usr/lib/lua/luci/version.lua
|
||||||
sed -i '/luciversion/d' /usr/lib/lua/luci/version.lua
|
sed -i '/luciversion/d' /usr/lib/lua/luci/version.lua
|
||||||
echo 'luciversion = "$date1"' >> /usr/lib/lua/luci/version.lua
|
echo 'luciversion = "Otc"' >> /usr/lib/lua/luci/version.lua
|
||||||
|
|
||||||
sed -i '/log-facility/d' /etc/dnsmasq.conf
|
sed -i '/log-facility/d' /etc/dnsmasq.conf
|
||||||
echo "log-facility=/dev/null" >> /etc/dnsmasq.conf
|
echo "log-facility=/dev/null" >> /etc/dnsmasq.conf
|
||||||
|
|
|
@ -31,16 +31,6 @@ sed -i "s/# //g" /etc/opkg/distfeeds.conf
|
||||||
#uci set dhcp.@dnsmasq[0].nonwildcard=0
|
#uci set dhcp.@dnsmasq[0].nonwildcard=0
|
||||||
#uci commit dhcp
|
#uci commit dhcp
|
||||||
|
|
||||||
#设置IP
|
|
||||||
uci set network.lan.ipaddr='192.168.1.252' # 默认IP地址
|
|
||||||
uci set network.lan.proto='static' # 静态IP
|
|
||||||
uci set network.lan.type='bridge' # 接口类型:桥接
|
|
||||||
uci set network.lan.ifname='eth0' # 网络端口:默认 eth0,第一个网口
|
|
||||||
uci set network.lan.netmask='255.255.255.0' # 子网掩码
|
|
||||||
uci set network.lan.gateway='192.168.1.251' # 默认网关地址(主路由IP)
|
|
||||||
uci set network.lan.dns='192.168.1.251 223.5.5.5 119.29.29.29' # 默认上游 DNS 地址
|
|
||||||
uci commit network
|
|
||||||
|
|
||||||
#DNS重定向
|
#DNS重定向
|
||||||
sed -i '/REDIRECT --to-ports 53/d' /etc/firewall.user
|
sed -i '/REDIRECT --to-ports 53/d' /etc/firewall.user
|
||||||
echo "# iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53" >> /etc/firewall.user
|
echo "# iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53" >> /etc/firewall.user
|
||||||
|
@ -53,6 +43,8 @@ date=`date +%m.%d`
|
||||||
date1=`date +%h`
|
date1=`date +%h`
|
||||||
sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
|
sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
|
||||||
echo "DISTRIB_REVISION='v$date'" >> /etc/openwrt_release
|
echo "DISTRIB_REVISION='v$date'" >> /etc/openwrt_release
|
||||||
|
sed -i '/DISTRIB_RELEASE/d' /etc/openwrt_release
|
||||||
|
echo "DISTRIB_RELEASE='v$date1'" >> /etc/openwrt_release
|
||||||
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
|
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
|
||||||
echo "DISTRIB_DESCRIPTION='Openwrt '" >> /etc/openwrt_release
|
echo "DISTRIB_DESCRIPTION='Openwrt '" >> /etc/openwrt_release
|
||||||
|
|
||||||
|
@ -61,7 +53,7 @@ sed -i 's/LuCI openwrt-18.06 branch/kenzo/g' /usr/lib/lua/luci/version.lua
|
||||||
sed -i 's/LuCI 17.01 Lienol/kenzo/g' /usr/lib/lua/luci/version.lua
|
sed -i 's/LuCI 17.01 Lienol/kenzo/g' /usr/lib/lua/luci/version.lua
|
||||||
sed -i 's/LuCI openwrt-21.02 branch/kenzo/g' /usr/lib/lua/luci/version.lua
|
sed -i 's/LuCI openwrt-21.02 branch/kenzo/g' /usr/lib/lua/luci/version.lua
|
||||||
sed -i '/luciversion/d' /usr/lib/lua/luci/version.lua
|
sed -i '/luciversion/d' /usr/lib/lua/luci/version.lua
|
||||||
echo 'luciversion = "$date1"' >> /usr/lib/lua/luci/version.lua
|
echo 'luciversion = "Otc"' >> /usr/lib/lua/luci/version.lua
|
||||||
|
|
||||||
# 删除状态页不需显示的
|
# 删除状态页不需显示的
|
||||||
rm -rf /usr/lib/lua/luci/view/admin_status/index
|
rm -rf /usr/lib/lua/luci/view/admin_status/index
|
||||||
|
|
Loading…
Reference in New Issue