Autostarted connectivity check

This commit is contained in:
Torxed committed 2025-08-02 18:09:37 +02:00
1 parent 8ffeb978d1
commit cbca7de51a
2 files changed
+14 -2

No files matched your search

+3 -2
View File
@@ -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
+11
View File
@@ -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