|
@@ -7,8 +7,8 @@ exit 0
|
|
EOF
|
|
EOF
|
|
sudo cp /tmp/rc.local /etc/
|
|
sudo cp /tmp/rc.local /etc/
|
|
sudo chmod +x /etc/rc.local
|
|
sudo chmod +x /etc/rc.local
|
|
-sudo systemctl disable rc-local
|
|
|
|
-sudo systemctl disable rc.local
|
|
|
|
|
|
+sudo systemctl disable rc-local >/dev/null 2>&1
|
|
|
|
+sudo systemctl disable rc.local >/dev/null 2>&1
|
|
fi
|
|
fi
|
|
|
|
|
|
if ! [ -f /lib/systemd/system/rc-local.service ]
|
|
if ! [ -f /lib/systemd/system/rc-local.service ]
|
|
@@ -37,5 +37,5 @@ GuessMainPID=no
|
|
EOF
|
|
EOF
|
|
|
|
|
|
sudo cp /tmp/rc-local.service /lib/systemd/system/rc-local.service
|
|
sudo cp /tmp/rc-local.service /lib/systemd/system/rc-local.service
|
|
-sudo systemctl daemon-reload
|
|
|
|
|
|
+sudo systemctl daemon-reload >/dev/null 2>&1
|
|
fi
|
|
fi
|