fix
This commit is contained in:
parent
4420346b64
commit
40fa2eca39
1 changed files with 5 additions and 5 deletions
|
@ -12,7 +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'
|
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"
|
||||||
|
@ -575,8 +575,8 @@ RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" > /etc/systemd/system/rc-local.service
|
WantedBy=multi-user.target" > /etc/systemd/system/rc-local.service
|
||||||
touch /etc/rc.local
|
touch $RCLOCAL
|
||||||
chmod +x /etc/rc.local
|
chmod +x $RCLOCAL
|
||||||
systemctl enable rc-local.service
|
systemctl enable rc-local.service
|
||||||
if ! grep '#!' $RCLOCAL; then
|
if ! grep '#!' $RCLOCAL; then
|
||||||
echo "#!/bin/bash" > $RCLOCAL
|
echo "#!/bin/bash" > $RCLOCAL
|
||||||
|
@ -594,8 +594,8 @@ RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=shutdown.target" > /etc/systemd/system/rc-local-shutdown.service
|
WantedBy=shutdown.target" > /etc/systemd/system/rc-local-shutdown.service
|
||||||
touch /etc/rc.local.shutdown
|
touch $RCLOCALSHUTDOWN
|
||||||
chmod +x /etc/rc.local.shutdown
|
chmod +x $RCLOCALSHUTDOWN
|
||||||
systemctl enable rc-local-shutdown.service
|
systemctl enable rc-local-shutdown.service
|
||||||
if ! grep '#!' $RCLOCALSHUTDOWN; then
|
if ! grep '#!' $RCLOCALSHUTDOWN; then
|
||||||
echo "#!/bin/bash" > $RCLOCALSHUTDOWN
|
echo "#!/bin/bash" > $RCLOCALSHUTDOWN
|
||||||
|
|
Loading…
Reference in a new issue