install: Connect to network on first "real" boot

This commit is contained in:
2024-05-11 13:46:30 +02:00
parent d84b67360b
commit a3f443721c
2 changed files with 8 additions and 0 deletions

View File

@@ -119,6 +119,10 @@ EOF
# Run # Run
cat << 'EOF' > /root/.bash_profile cat << 'EOF' > /root/.bash_profile
if [[ "\$(tty)" == "/dev/tty1" ]] ; then 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/ rm -rf /etc/systemd/system/getty@tty1.service.d/
if /var/lib/dotfiles/install.sh ; then if /var/lib/dotfiles/install.sh ; then
rm -f /root/.bash_profile rm -f /root/.bash_profile

View File

@@ -119,6 +119,10 @@ EOF
# Run # Run
cat << 'EOF' > /root/.bash_profile cat << 'EOF' > /root/.bash_profile
if [[ "\$(tty)" == "/dev/tty1" ]] ; then 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/ rm -rf /etc/systemd/system/getty@tty1.service.d/
if /var/lib/dotfiles/install.sh ; then if /var/lib/dotfiles/install.sh ; then
rm -f /root/.bash_profile rm -f /root/.bash_profile