fix: 修正

main
huangfeng 8 months ago
parent 3d1fe043e5
commit 65630c5c55

@ -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

Loading…
Cancel
Save