Modified startup script, such that it asks to set the time before launching the photobooth, when specifying argument 'set-time'. This is useful when you use the box without an internet connection and thus would end up with wrong timestamps otherwise.

This commit is contained in:
Balthasar Reuter
2016-07-23 12:30:00 +02:00
parent 6ab1f6f196
commit 941818ab56

View File

@@ -4,7 +4,11 @@ PHOTOBOOTH_DIR=/home/pi/photobooth
cd "${PHOTOBOOTH_DIR}"
sudo ./photobooth.py > photobooth.log 2> photobooth.err
if [[ $1 == "set-time" ]]; then
sudo gnome-control-center datetime
fi
sudo python photobooth.py >>photobooth.log 2>>photobooth.err
cd -