Files
OpenDRS/RPiSetup/usr/local/bin/startdrs.sh

38 lines
892 B
Bash

#!/bin/bash
source /etc/drs.conf
openbox-session &
xset s off
xset +dpms
xset dpms 0 600 1800
#xset dpms force off
while true
do
killall chromium-browser
rm -rf ~/.{config,cache}/chromium/
# start browser in your web site: here, just plain old localhost
# -test-type will ignore any warnings and
# --ignore-certificate-errors will allow you to kiosk any https-page without displaying certificate errors
chromium-browser -test-type --ignore-certificate-errors --kiosk --no-first-run --incognito $DRS_SERVER &
sleep 10
while true
do
pgrep chromium-browse
if [ "$?" -eq "1" ]
then
# here you could execute something that is supposed to happen after the browser was accidentally quit
chromium-browser -test-type --ignore-certificate-errors --kiosk --no-first-run --incognito $DRS_SERVER &
fi
sleep 1
done
exit 0
done