forked from SakuraFallingMad/OpenWrt_HomeLede_Ownuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diy-part1.sh
executable file
·72 lines (64 loc) · 1.87 KB
/
diy-part1.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
#!/bin/bash
#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part1.sh
# Description: OpenWrt DIY script part 1 (Before Update feeds)
#
# Uncomment a feed source
#sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default
# Add a feed source
#sed -i '$a src-git lienol https://github.com/Lienol/openwrt-package' feeds.conf.default
# Add jerrykuku's vssr
git clone https://github.com/jerrykuku/lua-maxminddb.git ./package/lean/lua-maxminddb
git clone https://github.com/jerrykuku/luci-app-vssr.git ./package/lean/luci-app-vssr
# Add HomeLede prepareCompile.sh
disablePkgsList="
./feeds/xiaoqingfeng/softethervpn5
./feeds/pw/chinadns-ng
./feeds/pw/ipt2socks
./package/lean/luci-app-kodexplorer
./package/lean/luci-lib-docker
./package/lean/luci-app-dockerman
./package/lean/kcptun
./package/lean/luci-theme-argon
./package/lean/v2ray
./package/lean/v2ray-plugin
./package/lean/xray
./package/lean/luci-app-jd-dailybonus
./package/lean/luci-app-docker
./package/lean/softethervpn5
./package/lean/luci-app-softethervpn
./feeds/packages/utils/docker-compose
./feeds/packages/net/miniupnpd
./feeds/packages/net/mwan3
./feeds/packages/utils/docker-ce
./feeds/packages/utils/containerd
./feeds/packages/utils/libnetwork
./feeds/packages/utils/tini
./feeds/packages/utils/runc
./feeds/packages/net/dnscrypt-proxy2
./feeds/packages/net/https-dns-proxy
./feeds/packages/net/kcptun
./feeds/packages/net/smartdns
./feeds/packages/net/xtables-addons
./feeds/luci/applications/luci-app-sqm
"
function disableDulicatedPkg()
{
if [ -d $1 ];then
rm -rf $1
echo $1" Disabled."
fi
}
./scripts/feeds update -a
for disablePkg in $disablePkgsList
do
disableDulicatedPkg $disablePkg
done
./scripts/feeds update -i
./scripts/feeds install -a