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:
@@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# 1. Warten, bis der User‑DBus stabil ist
|
||||||
|
until busctl --user list >/dev/null 2>&1; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
# 2. Warten, bis die COSMIC‑Session 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"
|
||||||
Reference in New Issue
Block a user