From 941818ab5671057497447c8e9ae93a363d77d590 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Sat, 23 Jul 2016 12:30:00 +0200 Subject: [PATCH] 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. --- photobooth.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/photobooth.sh b/photobooth.sh index 1a58520..c62703e 100755 --- a/photobooth.sh +++ b/photobooth.sh @@ -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 -