Browse Source

fix: allow-hotplug eth0

bookworm
pvincent@x260 4 years ago
parent
commit
6d650f4b2d
  1. 10
      src/main

10
src/main

@ -65,7 +65,7 @@ PGKNAME='openssh-server'
runVoid dpkg-query --status $PGKNAME
if [ $? -ne 0 ] ; then
set -e
sudo apt install $PGKNAME
sudo apt install -y $PGKNAME
sudo /opt/debian-bash/tools/append_or_replace "^#\?PermitRootLogin.*$" "PermitRootLogin no" /etc/ssh/sshd_config
sudo /opt/debian-bash/tools/append_or_replace "^#\?PasswordAuthentication.*$" "PasswordAuthentication no" /etc/ssh/sshd_config
sudo /opt/debian-bash/tools/append_or_replace "^#\?AllowUsers.*$" "AllowUsers $ALLOWED_USERS" /etc/ssh/sshd_config
@ -75,6 +75,14 @@ else
echo "${PGKNAME} already installed!"
fi
## allow hotplug eth0
if [[ $(grep 'auto eth0' /etc/network/interfaces.d/setup ) ]];then
sudo /opt/debian-bash/tools/append_or_replace "^auto eth0.*$" "allow-hotplug eth0" /etc/network/interfaces.d/setup
else
echo "allow-hotplug already set up"
fi
## firefox latest
if [[ ! /usr/local/bin/firefox -ef /opt/firefox/firefox ]];then
set -e

Loading…
Cancel
Save