ToastFreeware
/
gregoa
/
zavai.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into gregoa
[gregoa/zavai.git]
/
hooks
/
gps
diff --git
a/hooks/gps
b/hooks/gps
index c11c8b965f89304dcd5a25ba6acf33afdec0efd7..3d99390e5fffcf5ffa8275c21f3bbb7071f375f4 100755
(executable)
--- a/
hooks/gps
+++ b/
hooks/gps
@@
-4,12
+4,7
@@
case "$1" in
status)
if [ `om gps power` = 1 ]
then
status)
if [ `om gps power` = 1 ]
then
- if [ `pgrep -c gpsd` != 0 ]
- then
- echo on
- else
- echo off
- fi
+ echo on
else
echo off
fi
else
echo off
fi
@@
-20,16
+15,12
@@
case "$1" in
if [ $old = 0 ]
then
om gps keep-on-in-suspend 1
if [ $old = 0 ]
then
om gps keep-on-in-suspend 1
- /etc/init.d/gpsd stop
- # TODO: configure to UBX mode
- /etc/init.d/gpsd start
fi
;;
# When stopping the gps
stop)
fi
;;
# When stopping the gps
stop)
- /etc/init.d/gpsd stop
om gps power 0
om gps power 0
- om gps keep-on-in-suspend
o
+ om gps keep-on-in-suspend
0
;;
*)
echo "Usage: $0 {start|stop|status}." >&2
;;
*)
echo "Usage: $0 {start|stop|status}." >&2