fix
This commit is contained in:
parent
7de5f82d5d
commit
4420346b64
1 changed files with 18 additions and 1 deletions
|
@ -12,6 +12,7 @@ echo "Als root Angemeldet"
|
||||||
|
|
||||||
VERSION_ID=$(cat /etc/os-release | grep "ID")
|
VERSION_ID=$(cat /etc/os-release | grep "ID")
|
||||||
RCLOCAL='/etc/rc.local'
|
RCLOCAL='/etc/rc.local'
|
||||||
|
RCLOCALSHUTDOWN='/etc/rc-local-shutdown'
|
||||||
SYSCTL='/etc/sysctl.conf'
|
SYSCTL='/etc/sysctl.conf'
|
||||||
WEBADDRESS="https://github.com/simono41/SpectreOS.git"
|
WEBADDRESS="https://github.com/simono41/SpectreOS.git"
|
||||||
WEBADDRESS1="https://github.com/simono41/shell-scripte.git"
|
WEBADDRESS1="https://github.com/simono41/shell-scripte.git"
|
||||||
|
@ -583,7 +584,23 @@ fi
|
||||||
|
|
||||||
# Install rc.shutdown
|
# 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
|
if [ "${version}" == "manjaro" ]; then
|
||||||
cp /opt/${repo}/update-bootloader /usr/bin/update-bootloader
|
cp /opt/${repo}/update-bootloader /usr/bin/update-bootloader
|
||||||
chmod +x /usr/bin/update-bootloader
|
chmod +x /usr/bin/update-bootloader
|
||||||
|
|
Loading…
Reference in a new issue