fix
This commit is contained in:
parent
40fa2eca39
commit
dcdcfd4054
1 changed files with 7 additions and 2 deletions
|
@ -585,15 +585,20 @@ fi
|
||||||
# Install rc.shutdown
|
# Install rc.shutdown
|
||||||
|
|
||||||
echo "[Unit]
|
echo "[Unit]
|
||||||
Description=/etc/rc.local.shutdown compatibility
|
Description=/etc/rc.local.shutdown Compatibility
|
||||||
|
ConditionFileIsExecutable=/etc/rc.local.shutdown
|
||||||
|
DefaultDependencies=no
|
||||||
|
After=basic.target
|
||||||
|
Before=shutdown.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/etc/rc.local.shutdown
|
ExecStart=/etc/rc.local.shutdown
|
||||||
|
StandardInput=tty
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=shutdown.target" > /etc/systemd/system/rc-local-shutdown.service
|
WantedBy=multi-user.target" > /etc/systemd/system/rc-local-shutdown.service
|
||||||
touch $RCLOCALSHUTDOWN
|
touch $RCLOCALSHUTDOWN
|
||||||
chmod +x $RCLOCALSHUTDOWN
|
chmod +x $RCLOCALSHUTDOWN
|
||||||
systemctl enable rc-local-shutdown.service
|
systemctl enable rc-local-shutdown.service
|
||||||
|
|
Loading…
Reference in a new issue