Boot sequence ONE - HestiaPi/hestia-touch-openhab GitHub Wiki

HestiaPi Touch ONE runs Raspbian Stretch (not Lite). It boots into Console without Desktop. Matchbox is used as a window manager with openbox LXDE.

On boot, file:

/etc/rc.local

calls:

/home/pi/scripts/kiosk-xinit.sh

like this:

su -l pi -c 'sudo xinit /home/pi/scripts/kiosk-xinit.sh'

which after checking the environment, is setting a few parameters for loading a browser (kweb) in kiosk mode with the loading html page:

/home/pi/scripts/openhabloader.html

Then in the background it checks periodically when CPU load (reported by top) goes below 0.5 which is a sign that the backend should have finished loading. It only then loads the full UI. This may take up to 25 minutes.

If for some reason the browser dies or gets killed

/home/pi/scripts/kiosk-xinit.sh

opens it again.