generated from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
diy-part1.sh
executable file
·52 lines (45 loc) · 1.21 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
#!/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
#echo 'src-git helloworld https://github.com/fw876/helloworld' >>feeds.conf.default
#echo 'src-git passwall https://github.com/xiaorouji/openwrt-passwall' >>feeds.conf.default
# Add prepareCompile
disablePkgsList="
./feeds/luci/applications/luci-app-softethervpn
./feeds/luci/themes/luci-theme-argon
./feeds/packages/net/adguardhome
./feeds/packages/net/mosdns
./feeds/small8/diy
./feeds/small8/luci-app-argon-config
./feeds/small8/luci-theme-argon
./feeds/small8/mbedtls
./feeds/small8/my-default-settings
./feeds/small8/vsftpd-alt
./feeds/small8/openwrt-app-actions
"
function disableDulicatedPkg()
{
if [ -d $1 ];then
rm -rf $1
echo $1" Disabled."
fi
}
git pull
./scripts/feeds update -a
for disablePkg in $disablePkgsList
do
disableDulicatedPkg $disablePkg
done
./scripts/feeds update -i
./scripts/feeds install -a