Wachalarm-Monitor/home/on-pi-startup.sh
Jarno Rantanen fe9c34c3a3 Fix chromium version, as the latest (at the time of writing) segfaulted on the pi.
Also update partition sizes to make the resulting image smaller.
2016-03-26 11:07:09 +02:00

14 lines
512 B
Bash
Executable File

#!/bin/bash
# Make sure Chromium profile is marked clean, even if it crashed
# https://stedolan.github.io/jq/manual/
if [ -f .config/chromium/Default/Preferences ]; then
cat .config/chromium/Default/Preferences \
| jq '.profile.exit_type = "SessionEnded" | .profile.exited_cleanly = true' \
> .config/chromium/Default/Preferences-clean
mv .config/chromium/Default/Preferences{-clean,}
fi
# http://peter.sh/experiments/chromium-command-line-switches/
chromium-browser --start-fullscreen