-
Notifications
You must be signed in to change notification settings - Fork 9
/
add-test-packages.sh
35 lines (29 loc) · 928 Bytes
/
add-test-packages.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
#!/bin/bash
#=================================================
# this script is from https://github.com/lunatickochiya/Lunatic-s805-rockchip-Action
# Written By lunatickochiya
# QQ group :286754582 https://jq.qq.com/?_wv=1027&k=5QgVYsC
#=================================================
function add_nft_config() {
for file in package-configs/single/*-nft.config; do echo "# ADD TURBOACC
CONFIG_PACKAGE_luci-app-turboacc=y
# iptable legacy in nft
CONFIG_PACKAGE_ip6tables-zz-legacy=y
CONFIG_PACKAGE_iptables-zz-legacy=y
" >> "$file"; done
}
function add_ipt_config() {
for file in package-configs/single/*-ipt.config; do echo "# ADD TURBOACC
CONFIG_PACKAGE_luci-app-turboacc=y
# iptable legacy in nft
CONFIG_PACKAGE_ip6tables-zz-legacy=y
CONFIG_PACKAGE_iptables-zz-legacy=y
" >> "$file"; done
}
if [ "$1" == "nft" ]; then
add_nft_config
elif [ "$1" == "ipt" ]; then
add_ipt_config
else
echo "Invalid argument"
fi