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:
+2
-14
@@ -13,20 +13,9 @@ echo " SeniorNet Kiosk — First-Boot Setup"
|
|||||||
echo "============================================"
|
echo "============================================"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# ── Prompt for user details ────────────────────────────────────────
|
# ── Fixed user details ─────────────────────────────────────────────
|
||||||
KIOSK_USER="kiosk"
|
KIOSK_USER="kiosk"
|
||||||
|
KIOSK_NAME="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
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# ── Paths ──────────────────────────────────────────────────────────
|
# ── Paths ──────────────────────────────────────────────────────────
|
||||||
@@ -157,5 +146,4 @@ echo " Setup complete!"
|
|||||||
echo " Kiosk will start after reboot as: $KIOSK_NAME ($KIOSK_USER)"
|
echo " Kiosk will start after reboot as: $KIOSK_NAME ($KIOSK_USER)"
|
||||||
echo "============================================"
|
echo "============================================"
|
||||||
echo
|
echo
|
||||||
read -rp "Press Enter to reboot..."
|
|
||||||
reboot
|
reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user