编辑文件 cns.sh

This commit is contained in:
cnb.dg2025-08
2025-09-14 18:57:21 +08:00
committed by cnb
parent 02f17f8e8f
commit 5c681eeca5
+2 -2
View File
@@ -121,7 +121,7 @@ InstallInit() {
}
AddAutoStart() {
if [ -n "$rcCommon" ]; then
if [ -n "$rcCommon &>/dev/null" ]; then
if /etc/init.d/Acns enable; then
echo '已添加开机自启, 如需关闭请执行: /etc/init.d/Acns disable'
return
@@ -174,7 +174,7 @@ Install() {
\r cns udp flag:\033[35G${cns_udp_flag:-httpUDP}
\r cns encrypt password:\033[35G${cns_encrypt_password}
\r cns tls server port:\033[35G${cns_tls_port}
\r`[ -f /etc/init.d/Acns ] && /etc/init.d/Acns usage || \"$cns_install_dir/cns.init\" usage`\033[0m
\r`[ -f /etc/init.d/Acns ] && /etc/init.d/Acns usage || \"$cns_install_dir/cns.init\" usage`
\r`AddAutoStart`\033[0m"
}