From 4420346b64e60f92b0979b9c33dc313550fee182 Mon Sep 17 00:00:00 2001 From: simono41 Date: Sat, 5 May 2018 00:36:28 +0200 Subject: [PATCH] fix --- arch-graphical-install-auto | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index b93c929..69ed605 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -12,6 +12,7 @@ echo "Als root Angemeldet" VERSION_ID=$(cat /etc/os-release | grep "ID") RCLOCAL='/etc/rc.local' +RCLOCALSHUTDOWN='/etc/rc-local-shutdown' SYSCTL='/etc/sysctl.conf' WEBADDRESS="https://github.com/simono41/SpectreOS.git" WEBADDRESS1="https://github.com/simono41/shell-scripte.git" @@ -583,7 +584,23 @@ fi # Install rc.shutdown -echo "#!/bin/bash" > /etc/rc.local.shutdown +echo "[Unit] +Description=/etc/rc.local.shutdown compatibility + +[Service] +Type=oneshot +ExecStart=/etc/rc.local.shutdown +RemainAfterExit=yes + +[Install] +WantedBy=shutdown.target" > /etc/systemd/system/rc-local-shutdown.service +touch /etc/rc.local.shutdown +chmod +x /etc/rc.local.shutdown +systemctl enable rc-local-shutdown.service +if ! grep '#!' $RCLOCALSHUTDOWN; then + echo "#!/bin/bash" > $RCLOCALSHUTDOWN +fi + if [ "${version}" == "manjaro" ]; then cp /opt/${repo}/update-bootloader /usr/bin/update-bootloader chmod +x /usr/bin/update-bootloader