X-Git-Url: https://git.toastfreeware.priv.at/gregoa/zavai.git/blobdiff_plain/894c6690a53ac2b90da0c39cb7c062dc682e70c4..91032038b954582106ac2d64b04536572c2f2827:/hooks/gps diff --git a/hooks/gps b/hooks/gps index 6eecd99..3d99390 100755 --- a/hooks/gps +++ b/hooks/gps @@ -4,12 +4,7 @@ case "$1" in 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 @@ -20,15 +15,12 @@ case "$1" in 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) - /etc/init.d/gpsd stop om gps power 0 + om gps keep-on-in-suspend 0 ;; *) echo "Usage: $0 {start|stop|status}." >&2