From 6fa8d143b9ad46ceb2016c76e53d6ab045f6ffcf Mon Sep 17 00:00:00 2001 From: simono41 Date: Mon, 3 Sep 2018 02:40:18 +0200 Subject: [PATCH] fix --- arch-graphical-install-auto | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index 0e67dbb..1e435ea 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -750,8 +750,10 @@ mkdir -p /root/.ssh echo "ServerAliveInterval 120" > ~/.ssh/config echo "ServerAliveCountMax 15" >> ~/.ssh/config -# Install rc.local -echo "[Unit] +if ! [ "${version}" == "libre-xfce4-openrc" ]; then + + # Install rc.local + echo "[Unit] Description=/etc/rc.local compatibility [Service] @@ -760,19 +762,18 @@ ExecStart=/etc/rc.local RemainAfterExit=yes [Install] -WantedBy=multi-user.target" > /etc/systemd/system/rc-local.service -touch $RCLOCAL -chmod +x $RCLOCAL -systemctl enable rc-local.service -if ! grep '#!' $RCLOCAL; then - echo "#!/bin/bash" > $RCLOCAL -fi + WantedBy=multi-user.target" > /etc/systemd/system/rc-local.service + touch $RCLOCAL + chmod +x $RCLOCAL + systemctl enable rc-local.service + if ! grep '#!' $RCLOCAL; then + echo "#!/bin/bash" > $RCLOCAL + fi -if ! grep 'setcap cap_net_raw+ep /bin/ping' $RCLOCAL; then - echo "setcap cap_net_raw+ep /bin/ping" >> $RCLOCAL -fi + if ! grep 'setcap cap_net_raw+ep /bin/ping' $RCLOCAL; then + echo "setcap cap_net_raw+ep /bin/ping" >> $RCLOCAL + fi -if ! [ "${version}" == "libre-xfce4-openrc" ]; then # Install rc.shutdown