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:
@@ -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 -
|
||||
|
||||
|
||||
Reference in New Issue
Block a user