Added Bluetooth hook
[gregoa/zavai.git] / hooks / gps
index 410248735b80600ff22c2405060ede89fc7e2167..c11c8b965f89304dcd5a25ba6acf33afdec0efd7 100755 (executable)
--- a/hooks/gps
+++ b/hooks/gps
@@ -19,7 +19,7 @@ case "$1" in
                old=`om gps --swap power 1`
                if [ $old = 0 ]
                then
-                       om gpt keep_on_during_suspend 1
+                       om gps keep-on-in-suspend 1
                        /etc/init.d/gpsd stop
                        # TODO: configure to UBX mode
                        /etc/init.d/gpsd start
@@ -29,6 +29,7 @@ case "$1" in
        stop)
                /etc/init.d/gpsd stop
                om gps power 0
+               om gps keep-on-in-suspend o
        ;;
        *)
                echo "Usage: $0 {start|stop|status}." >&2