From 7dbf341415a26a895c8382c0bd54166c00ba3946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 17 Oct 2025 16:21:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(sysctl):=20=E7=A1=AE=E4=BF=9D=20sysctl=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/1.sh b/1.sh index c34e085..9c5aba4 100644 --- a/1.sh +++ b/1.sh @@ -74,6 +74,7 @@ sysctl_config() { # # 确保配置文件目录存在 mkdir -p "$(dirname "$SYSCTL_CONF")" + touch "$SYSCTL_CONF" for SETTING in "${SYSCTL_SETTINGS[@]}"; do # 遍历数组 KEY=$(echo "$SETTING" | cut -d '=' -f 1) # 截取=左边的字符串