Create wait-and-run.sh for first boot initialization

Add wait-and-run.sh script to manage first boot process
This commit is contained in:
humocs-man
2026-03-14 12:22:15 +01:00
committed by GitHub
parent 584cf016df
commit e267e029a2
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
# 1. Warten, bis der UserDBus stabil ist
until busctl --user list >/dev/null 2>&1; do
sleep 1
done
# 2. Warten, bis die COSMICSession wirklich läuft
until pgrep -x cosmic-session >/dev/null; do
sleep 1
done
# 3. Kurze Beruhigungsphase (Panels, Fokus, Autostarts)
sleep 2
# 4. Wizard starten
exec "$HOME/.config/firstboot/firstboot-setup.sh"