36 lines
868 B
Bash
36 lines
868 B
Bash
#!/bin/bash
|
|
|
|
source /etc/drs.conf
|
|
|
|
openbox-session &
|
|
|
|
xset s off
|
|
xset +dpms
|
|
xset dpms 0 600 1800
|
|
|
|
while true
|
|
do
|
|
killall chromium-browser
|
|
rm -rf ~/.{config,cache}/chromium/
|
|
|
|
# start browser to DRS Server
|
|
# --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 --check-for-update-interval=1 --simulate-upgrade --incognito $DRS_SERVER &
|
|
|
|
sleep 10
|
|
|
|
while true
|
|
do
|
|
pgrep chromium-browse
|
|
if [ "$?" -eq "1" ]
|
|
then
|
|
# relaunch browser if it terminates
|
|
chromium-browser --test-type --ignore-certificate-errors --kiosk --no-first-run --check-for-update-interval=1 --simulate-upgrade --incognito $DRS_SERVER &
|
|
fi
|
|
sleep 1
|
|
done
|
|
|
|
exit 0
|
|
done
|