-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Update Build-Machine-Single-2410.yml
- Loading branch information
1 parent
28d72a0
commit e76200d
Showing
3 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/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/*-nftables.config; do echo "# ADD TURBOACC | ||
CONFIG_PACKAGE_luci-app-turboacc=y | ||
CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_PDNSD=n | ||
#offload | ||
CONFIG_PACKAGE_kmod-nft-offload=y | ||
# sfe | ||
CONFIG_PACKAGE_kmod-fast-classifier=y | ||
CONFIG_PACKAGE_kmod-shortcut-fe=y | ||
CONFIG_PACKAGE_kmod-shortcut-fe-cm=n | ||
CONFIG_PACKAGE_kmod-nft-fullcone=y | ||
" >> "$file"; done | ||
} | ||
|
||
function add_ipt_config() { | ||
for file in package-configs/single/*-iptables.config; do echo "# ADD TURBOACC | ||
CONFIG_PACKAGE_luci-app-turboacc=y | ||
CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_PDNSD=n | ||
CONFIG_PACKAGE_luci-app-fullconenat=y | ||
#offload | ||
CONFIG_PACKAGE_kmod-ipt-offload=y | ||
# sfe | ||
CONFIG_PACKAGE_kmod-fast-classifier=y | ||
CONFIG_PACKAGE_kmod-shortcut-fe=y | ||
CONFIG_PACKAGE_kmod-shortcut-fe-cm=n | ||
" >> "$file"; done | ||
} | ||
|
||
if [ "$1" == "nft" ]; then | ||
add_nft_config | ||
elif [ "$1" == "ipt" ]; then | ||
add_ipt_config | ||
else | ||
echo "Invalid argument" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters