From 68e1e2e3f1844e71fddd9ebdb79ee56e34b65e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sun, 19 Oct 2025 02:15:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(sysctl):=20=E4=BC=98=E5=8C=96=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E9=85=8D=E7=BD=AE=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/1.sh b/1.sh index 79a7b84..aaa90e6 100644 --- a/1.sh +++ b/1.sh @@ -83,7 +83,12 @@ sysctl_config() { echo "$SETTING" >>"$SYSCTL_CONF" # 追加新的配置 # echo "已添加系统配置: $SETTING" # 输出提示信息 done # 循环结束 - sysctl --system + + if [ "$SYSTEM_TYPE" = "alpine" ]; then + sysctl -p + else + sysctl --system + fi } detect_cn_network() {