forked from tangyl2000/zn-m2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zn-m2-hxlls.sh
177 lines (140 loc) · 8.66 KB
/
zn-m2-hxlls.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
#!/bin/bash
#拉取git clone源码
git clone -b main --single-branch https://github.com/hxlls/ipq6000.git
#二次编译
git fetch && git reset --hard origin/main
#进入编译路径
cd ipq6000
#修改ethtool版本---20231008-6.4和6.5报错,需用6.3---d9425f0a3df138734001fccc4175fe178c025f938460ac25c4ebc39960168822
rm -rf package/network/utils/ethtool
svn export --force https://github.com/openwrt/openwrt/branches/master/package/network/utils/ethtool package/network/utils/ethtool
#修改6in4版本
rm -rf package/network/ipv6/6in4
svn export --force https://github.com/openwrt/openwrt/branches/master/package/network/ipv6/6in4 package/network/ipv6/6in4
#修改urandom-seed版本
rm -rf package/system/urandom-seed
svn export --force https://github.com/openwrt/openwrt/branches/master/package/system/urandom-seed package/system/urandom-seed
#修改ubox版本
rm -rf package/system/ubox
svn export --force https://github.com/openwrt/openwrt/branches/master/package/system/ubox package/system/ubox
#修改ubus版本
rm -rf package/system/ubus
svn export --force https://github.com/openwrt/openwrt/branches/master/package/system/ubus package/system/ubus
#用op官网ubus版本,必须要修改rpcd的配置文件(package/system/rpcd/files/rpcd.config)中ubus.sock文件路径为:/var/run/ubus/ubus.sock,原路径:/var/run/ubus.sock
#修改rpcd版本
rm -rf package/system/rpcd
svn export --force https://github.com/openwrt/openwrt/branches/openwrt-21.02/package/system/rpcd package/system/rpcd/
#更新packages/luci/routing/telephony
./scripts/feeds update -a && ./scripts/feeds install -a
#更新agronv3主题
rm -rf feeds/luci/themes/luci-theme-argonv3
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon feeds/luci/themes/luci-theme-argonv3
#修改默认主题为agronv3
sed -i 's/luci-theme-bootstrap/luci-theme-argonv3/g' feeds/luci/collections/luci/Makefile
sed -i 's/Bootstrap/Argonv3/g' feeds/luci/collections/luci/Makefile
#拉取sdf8057的luci-app-cpufreq
rm -rf feeds/luci/applications/luci-app-cpufreq
svn export --force https://github.com/sdf8057/luci/branches/1806/applications/luci-app-cpufreq feeds/luci/applications/luci-app-cpufreq
#更新passwall所有依赖包和luci
rm -rf feeds/packages/net/{brook,chinadns-ng,dns2socks,dns2tcp,gn,hysteria,ipt2socks,microsocks,naiveproxy,pdnsd-alt,shadowsocks-rust,shadowsocksr-libev,simple-obfs,sing-box,ssocks,tcping,trojan-go,trojan-plus,trojan,v2ray-core,v2ray-geodata,v2ray-plugin,xray-core,xray-plugin,tuic-client,redsocks2,v2raya,shadow-tls,v2dat}
git clone https://github.com/kenzok8/small
mv small/* feeds/packages/net/
rm -rf small
rm -rf feeds/packages/net/README.md
rm -rf feeds/packages/net/LICENSE
rm -rf feeds/packages/lang/lua-neturl
mv feeds/packages/net/lua-neturl feeds/packages/lang/lua-neturl
rm -rf feeds/luci/applications/{luci-app-bypass,luci-app-passwall,luci-app-passwall2,luci-app-ssr-plus,luci-app-vssr}
mv feeds/packages/net/luci-app-bypass feeds/luci/applications/luci-app-bypass
mv feeds/packages/net/luci-app-passwall feeds/luci/applications/luci-app-passwall
mv feeds/packages/net/luci-app-passwall2 feeds/luci/applications/luci-app-passwall2
mv feeds/packages/net/luci-app-ssr-plus feeds/luci/applications/luci-app-ssr-plus
#mv feeds/packages/net/luci-app-vssr feeds/luci/applications/luci-app-vssr
#修改curl版本
#rm -rf feeds/packages/net/curl
#svn export --force https://github.com/openwrt/packages/branches/master/net/curl feeds/packages/net/curl
git clone https://github.com/sbwml/package_libs_nghttp3 package/libs/nghttp3
git clone https://github.com/sbwml/package_libs_ngtcp2 package/libs/ngtcp2
rm -rf feeds/packages/net/curl
git clone https://github.com/sbwml/feeds_packages_net_curl feeds/packages/net/curl
#修改nano版本:
rm -rf feeds/packages/utils/nano
svn export --force https://github.com/openwrt/packages/branches/master/utils/nano feeds/packages/utils/nano
#修改node版本:
rm -rf feeds/packages/lang/node
svn export --force https://github.com/coolsnowwolf/packages/branches/master/lang/node feeds/packages/lang/node
#修改golang版本---mosdns-v5需要新版golang
rm -rf feeds/packages/lang/golang
svn export --force https://github.com/openwrt/packages/branches/master/lang/golang feeds/packages/lang/golang
#修改htop版本
rm -rf feeds/packages/admin/htop
svn export --force https://github.com/immortalwrt/packages/branches/master/admin/htop feeds/packages/admin/htop
#修改ddns-scripts版本---弃用,改ddns-go
#rm -rf feeds/packages/net/{ddns-scripts,ddns-scripts_aliyun,ddns-scripts_dnspod}
#rm -rf feeds/packages/net/ddns-scripts
#svn export --force https://github.com/immortalwrt/packages/branches/master/net/ddns-scripts feeds/packages/net/ddns-scripts
#svn export --force https://github.com/immortalwrt/packages/branches/master/net/ddns-scripts_aliyun feeds/packages/net/ddns-scripts_aliyun
#svn export --force https://github.com/immortalwrt/packages/branches/master/net/ddns-scripts_dnspod feeds/packages/net/ddns-scripts_dnspod
#更新ddns-go
rm -rf feeds/packages/net/ddns-go
rm -rf feeds/luci/applications/luci-app-ddns-go
git clone https://github.com/sirpdboy/luci-app-ddns-go
mv luci-app-ddns-go/luci-app-ddns-go feeds/luci/applications/luci-app-ddns-go
mv luci-app-ddns-go/ddns-go feeds/packages/net/ddns-go
rm -rf luci-app-ddns-go
#修改mosdns版本、获取luci-app-mosdns
rm -rf feeds/packages/net/mosdns
rm -rf feeds/luci/applications/luci-app-mosdns
svn export --force https://github.com/kenzok8/openwrt-packages/branches/master/mosdns feeds/packages/net/mosdns
svn export --force https://github.com/kenzok8/openwrt-packages/branches/master/luci-app-mosdns feeds/luci/applications/luci-app-mosdns
#获取v2dat,luci-app-mosdns依赖于此
rm -rf feeds/packages/utils/v2dat
svn export --force https://github.com/coolsnowwolf/packages/branches/master/utils/v2dat feeds/packages/utils/v2dat
#获取luci-app-adguardhome、adguardhome
rm -rf feeds/packages/net/adguardhome
svn export --force https://github.com/kenzok8/openwrt-packages/branches/master/adguardhome feeds/packages/net/adguardhome
rm -rf feeds/luci/applications/luci-app-adguardhome
svn export --force https://github.com/kenzok8/openwrt-packages/branches/master/luci-app-adguardhome feeds/luci/applications/luci-app-adguardhome
#获取luci-app-pushbot
rm -rf feeds/luci/applications/luci-app-pushbot
svn export --force https://github.com/coolsnowwolf/luci/branches/master/applications/luci-app-pushbot feeds/luci/applications/luci-app-pushbot
#获取zerotier
rm -rf feeds/packages/net/zerotier
#git clone https://github.com/mwarning/zerotier-openwrt --此处版本为1.12.1,旧
svn export --force https://github.com/coolsnowwolf/packages/branches/master/net/zerotier feeds/packages/net/zerotier
#mv zerotier-openwrt/zerotier/ feeds/packages/net/zerotier
#rm -rf zerotier-openwrt/
rm -rf feeds/luci/applications/luci-app-zerotier
#git clone https://github.com/zhengmz/luci-app-zerotier feeds/luci/applications/luci-app-zerotier
svn export --force https://github.com/coolsnowwolf/luci/branches/master/applications/luci-app-zerotier feeds/luci/applications/luci-app-zerotier
#svn export --force https://github.com/immortalwrt/immortalwrt/branches/master/package/utils/ucode package/utils/ucode
#获取msd_lite和luci-app-msd_lite
rm -rf feeds/packages/net/msd_lite
git clone https://github.com/ximiTech/msd_lite feeds/packages/net/msd_lite
rm -rf feeds/luci/applications/luci-app-msd_lite
git clone https://github.com/ximiTech/luci-app-msd_lite feeds/luci/applications/luci-app-msd_lite
#更新unblockmusic
rm -rf feeds/packages/multimedia/UnblockNeteaseMusic
svn export --force https://github.com/kenzok8/small-package/branches/main/UnblockNeteaseMusic feeds/packages/multimedia/UnblockNeteaseMusic
rm -rf feeds/packages/multimedia/UnblockNeteaseMusic-Go
svn export --force https://github.com/kenzok8/small-package/branches/main/UnblockNeteaseMusic-Go feeds/packages/multimedia/UnblockNeteaseMusic-Go
rm -rf feeds/luci/applications/luci-app-unblockmusic
svn export --force https://github.com/coolsnowwolf/luci/branches/master/applications/luci-app-unblockmusic feeds/luci/applications/luci-app-unblockmusic
rm -rf feeds/packages/utils/upx
svn export --force https://github.com/immortalwrt/packages/branches/master/utils/upx feeds/packages/utils/upx
#更新luci-app-dnsfilter
rm -rf feeds/luci/applications/luci-app-dnsfilter
git clone https://github.com/kiddin9/luci-app-dnsfilter feeds/luci/applications/luci-app-dnsfilter
rm -rf ./tmp
#更新luci和packages
./scripts/feeds update -i packages
./scripts/feeds install -a -p packages
./scripts/feeds update -i luci
./scripts/feeds install -a -p luci
#下载自己的默认配置
rm -rf .config
curl -sfL https://raw.githubusercontent.com/tangyl2000/zn-m2/main/zn-m2-config-hxlls -o .config
make menuconfig
make defconfig
make download -j8
make -j8 V=s