Autostarted connectivity check
This commit is contained in:
2 files changed
+14
-2
No files matched your search
+3
-2
@@ -19,9 +19,10 @@ mkdir -p $cache_dir/
|
|||||||
cp -r archiso/configs/releng/* $cache_dir/
|
cp -r archiso/configs/releng/* $cache_dir/
|
||||||
|
|
||||||
# We add in our auto-start applications
|
# 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
|
cat <<- _EOF_ | tee $cache_dir/airootfs/root/.zprofile
|
||||||
omarchy-tui
|
check_connectivity.sh && omarchy-tui
|
||||||
_EOF_
|
_EOF_
|
||||||
|
|
||||||
# Add packages to the archiso profile packages
|
# Add packages to the archiso profile packages
|
||||||
|
|||||||
Executable
+11
@@ -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
|
||||||
Reference in new issue
Block a user