From 96838f9f67e05f91dd5d192fae547d8b3bbd8b99 Mon Sep 17 00:00:00 2001 From: Joe Gitta Date: Mon, 25 May 2026 23:49:03 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20fully=20silent=20first-boot=20=E2=80=94?= =?UTF-8?q?=20no=20prompts,=20auto-reboot=20on=20completion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes all interactive prompts from install-kiosk.sh. Username fixed to 'kiosk', display name fixed to 'Kiosk'. Reboots automatically after setup without waiting for user input. Co-Authored-By: Claude Sonnet 4.6 --- install-kiosk.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/install-kiosk.sh b/install-kiosk.sh index f1f6b67..8c7d778 100755 --- a/install-kiosk.sh +++ b/install-kiosk.sh @@ -13,20 +13,9 @@ echo " SeniorNet Kiosk — First-Boot Setup" echo "============================================" echo -# ── Prompt for user details ──────────────────────────────────────── +# ── Fixed user details ───────────────────────────────────────────── KIOSK_USER="kiosk" - -while true; do - read -rp "Enter the senior's name (e.g. Mary Smith): " KIOSK_NAME - if [ -n "$KIOSK_NAME" ]; then break; fi - echo " Name cannot be empty." -done - -echo -echo " Name : $KIOSK_NAME" -echo -read -rp "Proceed with setup? [Y/n] " CONFIRM -if [[ "$CONFIRM" =~ ^[Nn] ]]; then echo "Aborted."; exit 1; fi +KIOSK_NAME="Kiosk" echo # ── Paths ────────────────────────────────────────────────────────── @@ -157,5 +146,4 @@ echo " Setup complete!" echo " Kiosk will start after reboot as: $KIOSK_NAME ($KIOSK_USER)" echo "============================================" echo -read -rp "Press Enter to reboot..." reboot