From 0dcb26c12a56ae2ac931ed7b379f3593bbc0a9de Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Fri, 13 Mar 2026 10:20:03 +0100 Subject: [PATCH] Update firstboot-setup.sh --- .../skel/.config/firstboot/firstboot-setup.sh | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/files/etc/skel/.config/firstboot/firstboot-setup.sh b/files/etc/skel/.config/firstboot/firstboot-setup.sh index 9a2f313..a6f7d10 100644 --- a/files/etc/skel/.config/firstboot/firstboot-setup.sh +++ b/files/etc/skel/.config/firstboot/firstboot-setup.sh @@ -131,6 +131,7 @@ MEDIA=$(choose_list \ "Medien & Unterhaltung" \ "Wiedergabe von Audio und Video:" \ vlc "VLC Media Player" \ + showtime "Gnome Video Player" spotify "Spotify Client" \ ) @@ -198,6 +199,24 @@ zenity --question \ USE_BREW=$([[ $? -eq 0 ]] && echo yes || echo no) +# ---------------------------- +# Auto‑Update +# ---------------------------- +zenity --question \ + --title="Automatische Systemaktualisierung" \ + --text="Wenn diese Option aktiviert ist, prüft das System einmal pro Woche automatisch auf neue Aktualisierungen und installiert sie im Hintergrund. + +Du kannst den Aktualisierungsdienst jederzeit manuell starten mit: + + systemctl --user start bootc-update.service + +Ohne automatische Updates kannst du Aktualisierungen jederzeit selbst anstoßen mit: + + bootc upgrade" + +AUTO_UPDATE=$([[ $? -eq 0 ]] && echo yes || echo no) + + # ---------------------------- # Summary # ---------------------------- @@ -211,7 +230,9 @@ E‑Mail: ${MAIL:-keine} Entwicklung: ${DEV:-keine} System: ${SYSTEM:-keine} -Homebrew: $USE_BREW" +Homebrew: $USE_BREW +Automatische Updates: $AUTO_UPDATE" + zenity --question \ --title="Zusammenfassung" \ @@ -248,6 +269,8 @@ ensure_flathub echo "55"; echo "# Installiere Medien..." [[ "$MEDIA" == *vlc* ]] && flatpak install -y flathub org.videolan.VLC [[ "$MEDIA" == *spotify* ]] && flatpak install -y flathub com.spotify.Client + [[ "$MEDIA" == *showtime* ]] && flatpak install -y flathub org.gnome.Showtime + echo "70"; echo "# Installiere Audio/Video‑Tools..." [[ "$AV" == *shotcut* ]] && flatpak install -y flathub org.shotcut.Shotcut @@ -280,6 +303,13 @@ ensure_flathub --percentage=0 \ --auto-close +# ---------------------------- +# Auto‑Update aktivieren +# ---------------------------- +if [[ "$AUTO_UPDATE" == yes ]]; then + systemctl --user enable --now bootc-update.timer +fi + # ---------------------------- # Mark wizard as done # ----------------------------