diff --git a/build_iso.sh b/build_iso.sh index 661ca1b..15fd1d5 100755 --- a/build_iso.sh +++ b/build_iso.sh @@ -19,9 +19,10 @@ mkdir -p $cache_dir/ cp -r archiso/configs/releng/* $cache_dir/ # We add in our auto-start applications -# We'll assume the TUI installer is called omarchy-tui for now +# First we'll check for an active internet connection +# Then we'll start omarchy-tui cat <<- _EOF_ | tee $cache_dir/airootfs/root/.zprofile - omarchy-tui + check_connectivity.sh && omarchy-tui _EOF_ # Add packages to the archiso profile packages diff --git a/check_connectivity.sh b/check_connectivity.sh new file mode 100755 index 0000000..2c4fd3e --- /dev/null +++ b/check_connectivity.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +check_connectivity() { + curl -s --connect-timeout 5 https://omarchy.org/ > /dev/null +} + +INTERNET=`check_connectivity` +while ! $INTERNET; do + impala + INTERNET=`check_connectivity` +done \ No newline at end of file