forked from tangyl2000/zn-m2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
360t7-build
153 lines (119 loc) · 7.22 KB
/
360t7-build
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
#!/bin/bash
#拉取hanwckf源码
#git clone -b openwrt-21.02 --single-branch https://github.com/hanwckf/immortalwrt-mt798x
#cd immortalwrt-mt798x
#拉取237源码
git clone -b mt7981 --single-branch https://github.com/padavanonly/immortalwrtARM
cd immortalwrtARM
:'
237源需要更改scripts/feeds文件第835行为:
system('sed -i -e \'s/"^rausb%d", "^rai%d", "^ra%d", "^wdsi%d", "^wds%d", "^apclii%d", "^apcli%d", "^apcliusb%d", //\' feeds/luci/modules/luci-base/luasrc/model/network.lua');
原内容:
system(`sed -i -e 's/"^rausb%d", "^rai%d", "^ra%d", "^wdsi%d", "^wds%d", "^apclii%d", "^apcli%d", "^apcliusb%d", //' feeds/luci/modules/luci-base/luasrc/model/network.lua`);
'
#更新安装feeds
./scripts/feeds update -a && ./scripts/feeds install -a
#拉取luci-theme-design
rm -rf feeds/luci/themes/luci-theme-design
git clone https://github.com/gngpp/luci-theme-design feeds/luci/themes/luci-theme-design
#修改默认主题为luci-theme-design
sed -i 's/luci-theme-bootstrap/luci-theme-design/g' feeds/luci/collections/luci/Makefile
sed -i 's/Bootstrap/Design/g' feeds/luci/collections/luci/Makefile
#修改ethtool版本
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/sdf8057/ipq6000/branches/main/package/system/ubus package/system/ubus
svn export --force https://github.com/openwrt/openwrt/branches/master/package/system/ubus package/system/ubus
#修改rpcd配置文件[必须!!!]修改package/system/rpcd/files/rpcd.config内容中的option socket路径为/var/run/ubus/ubus.sock
#rm -rf package/system/rpcd
#svn export --force https://github.com/sdf8057/ipq6000/branches/main/package/system/rpcd package/system/rpcd
#修改fstools版本
rm -rf package/system/fstools
svn export --force https://github.com/immortalwrt/immortalwrt/branches/master/package/system/fstools package/system/fstools
#修改firewall3版本
rm -rf package/network/config/firewall
svn export --force https://github.com/coolsnowwolf/lede/branches/master/package/network/config/firewall package/network/config/firewall
#修改openssl版本
rm -rf package/libs/openssl
svn export --force https://github.com/immortalwrt/immortalwrt/branches/openwrt-21.02/package/libs/openssl package/libs/openssl
#修改curl版本
rm -rf feeds/packages/net/curl
svn export --force https://github.com/openwrt/packages/branches/master/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
#更新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}
git clone https://github.com/xiaorouji/openwrt-passwall
mv openwrt-passwall/* feeds/packages/net/
rm -rf openwrt-passwall
#更新geodata数据
rm -rf feeds/packages/net/v2ray-geodata
svn export --force https://github.com/kenzok8/small-package/branches/main/v2ray-geodata feeds/packages/net/v2ray-geodata
#更新luci-app-passwall
rm -rf feeds/luci/applications/luci-app-passwall
svn export --force https://github.com/kenzok8/small-package/branches/main/luci-app-passwall feeds/luci/applications/luci-app-passwall
#获取luci-app-aliddns
rm -rf feeds/luci/applications/luci-app-aliddns
svn export --force https://github.com/kenzok8/small-package/branches/main/luci-app-aliddns feeds/luci/applications/luci-app-aliddns
#修改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/kenzok8/openwrt-packages/branches/master/v2dat feeds/packages/utils/v2dat
#获取luci-app-pushbot
rm -rf feeds/luci/applications/luci-app-pushbot
svn export --force https://github.com/kenzok8/openwrt-packages/branches/master/luci-app-pushbot feeds/luci/applications/luci-app-pushbot
#获取zerotier
rm -rf feeds/packages/net/zerotier
svn export --force https://github.com/coolsnowwolf/packages/branches/master/net/zerotier feeds/packages/net/zerotier
rm -rf 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
#获取msd_lite
rm -rf feeds/packages/net/msd_lite
rm -rf rm -rf feeds/luci/applications/luci-app-msd_lite
svn export --force https://github.com/immortalwrt/packages/branches/master/net/msd_lite feeds/packages/net/msd_lite
svn export --force https://github.com/immortalwrt/luci/branches/master/applications/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
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/360t7-config-pw -o .config
make defconfig
make download -j8
make -j8 V=s