fix: fully silent first-boot — no prompts, auto-reboot on completion

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 <noreply@anthropic.com>
This commit is contained in:
2026-05-25 23:49:03 +00:00
parent 05f20355c8
commit 96838f9f67
+2 -14
View File
@@ -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