From a3f443721c8800ad0ee741c4d27d224f4f5f6614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 11 May 2024 13:46:30 +0200 Subject: [PATCH] install: Connect to network on first "real" boot --- install_scripts/ares.sh | 4 ++++ install_scripts/neptune.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/install_scripts/ares.sh b/install_scripts/ares.sh index 24594ad..54c1d94 100755 --- a/install_scripts/ares.sh +++ b/install_scripts/ares.sh @@ -119,6 +119,10 @@ EOF # Run cat << 'EOF' > /root/.bash_profile if [[ "\$(tty)" == "/dev/tty1" ]] ; then + while ! ping -w 3 -c 3 8.8.8.8 ; do + nmtui + sleep 5 + done rm -rf /etc/systemd/system/getty@tty1.service.d/ if /var/lib/dotfiles/install.sh ; then rm -f /root/.bash_profile diff --git a/install_scripts/neptune.sh b/install_scripts/neptune.sh index e7d3336..82a5621 100755 --- a/install_scripts/neptune.sh +++ b/install_scripts/neptune.sh @@ -119,6 +119,10 @@ EOF # Run cat << 'EOF' > /root/.bash_profile if [[ "\$(tty)" == "/dev/tty1" ]] ; then + while ! ping -w 3 -c 3 8.8.8.8 ; do + nmtui + sleep 5 + done rm -rf /etc/systemd/system/getty@tty1.service.d/ if /var/lib/dotfiles/install.sh ; then rm -f /root/.bash_profile