diff --git a/src/main b/src/main index 9bc2abe..0fb7c83 100755 --- a/src/main +++ b/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