#!/bin/sh
# Verwaltet von Tuxflotte (Rolle kiosk)
#
# Sitzung des Kontos "kiosk": startet den Kiosk-Browser immer wieder.
# Rückgabe 0 = Abmelden (zurück zum Anmeldebildschirm, bei Autostart
# meldet LightDM gleich wieder an), 3 = gewollter Neustart mit der
# Startseite, sonst (Absturz, neue Konfiguration) nach kurzer Pause.
while :; do
    /usr/bin/python3 /usr/local/lib/tuxflotte/tuxflotte-kiosk.py --konfig /etc/tuxflotte/kiosk.json
    case $? in
        0) exit 0 ;;
        3) ;;
        *) sleep 3 ;;
    esac
done
