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:
1 parent
6ab1f6f196
commit
941818ab56
1 file changed
+5
-1
+5
-1
@@ -4,7 +4,11 @@ PHOTOBOOTH_DIR=/home/pi/photobooth
|
|||||||
|
|
||||||
cd "${PHOTOBOOTH_DIR}"
|
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 -
|
cd -
|
||||||
|
|
||||||
Reference in new issue
Block a user