fix
This commit is contained in:
parent
502c639d9c
commit
6fa8d143b9
1 changed files with 14 additions and 13 deletions
|
@ -750,8 +750,10 @@ mkdir -p /root/.ssh
|
||||||
echo "ServerAliveInterval 120" > ~/.ssh/config
|
echo "ServerAliveInterval 120" > ~/.ssh/config
|
||||||
echo "ServerAliveCountMax 15" >> ~/.ssh/config
|
echo "ServerAliveCountMax 15" >> ~/.ssh/config
|
||||||
|
|
||||||
# Install rc.local
|
if ! [ "${version}" == "libre-xfce4-openrc" ]; then
|
||||||
echo "[Unit]
|
|
||||||
|
# Install rc.local
|
||||||
|
echo "[Unit]
|
||||||
Description=/etc/rc.local compatibility
|
Description=/etc/rc.local compatibility
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -760,19 +762,18 @@ ExecStart=/etc/rc.local
|
||||||
RemainAfterExit=yes
|
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 $RCLOCAL
|
touch $RCLOCAL
|
||||||
chmod +x $RCLOCAL
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep 'setcap cap_net_raw+ep /bin/ping' $RCLOCAL; then
|
if ! grep 'setcap cap_net_raw+ep /bin/ping' $RCLOCAL; then
|
||||||
echo "setcap cap_net_raw+ep /bin/ping" >> $RCLOCAL
|
echo "setcap cap_net_raw+ep /bin/ping" >> $RCLOCAL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ "${version}" == "libre-xfce4-openrc" ]; then
|
|
||||||
|
|
||||||
# Install rc.shutdown
|
# Install rc.shutdown
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue