From 65630c5c559a106c6d506078f667d1b353b60373 Mon Sep 17 00:00:00 2001 From: huangfeng Date: Fri, 1 Nov 2024 15:25:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ncac/ubuntu22/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncac/ubuntu22/setup.sh b/ncac/ubuntu22/setup.sh index a7fd102..77e8a6a 100644 --- a/ncac/ubuntu22/setup.sh +++ b/ncac/ubuntu22/setup.sh @@ -315,7 +315,7 @@ if [ ! -e "/etc/rc.local" ]; then cp package/rc.local /etc/ fi chmod +x /etc/rc.local -if [ `grep -c '[Install]' /lib/systemd/system/rc-local.service` -eq '0' ]; then +if [ `grep -c 'Install' /lib/systemd/system/rc-local.service` -eq '0' ]; then echo '' >> /lib/systemd/system/rc-local.service echo '[Install]' >> /lib/systemd/system/rc-local.service echo 'WantedBy=multi-user.target' >> /lib/systemd/system/rc-local.service