-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartstopPhotoframe.sh
More file actions
executable file
·39 lines (26 loc) · 919 Bytes
/
Copy pathstartstopPhotoframe.sh
File metadata and controls
executable file
·39 lines (26 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
ROOT='/mnt/us/photoframe/'
photoframerunning=1
# check if the photoframe 'app' is not running (by checking if the photoframeactive file is there)
test -f $ROOT'photoframeactive' || photoframerunning=0
if [ $photoframerunning -eq 0 ]; then
/etc/init.d/powerd stop
/etc/init.d/framework stop
eips -c # clear display
echo "Photo Frame is not running. Lets start it"
# eips "Photo Frame is not running. Lets start it."
# run showMetadata.sh to enable the keystrokes that will show the metadata
# sh /mnt/us/timelit/showMetadata.sh
touch $ROOT'photoframeactive'
echo 0 > $ROOT'photoframeactive'
sh $ROOT'runPhotoframe.sh'
else
rm $ROOT'photoframeactive'
eips -c # clear display
echo "Photo Frame is running. Make it stop."
# eips "Photo Frame is running. Make it stop."
# go to home screen
# echo "send 102">/proc/keypad
/etc/init.d/framework start
/etc/init.d/powerd start
fi