diff options
author | John Klug <john.klug@multitech.com> | 2016-12-21 09:15:47 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2016-12-21 09:15:47 -0600 |
commit | 0d53f1437fcdbae1c1b112b9892be8994cef3834 (patch) | |
tree | 2cf46a12b25f6b7d2fd1e080cc9b8d47300e1407 /recipes-navigation/gpsd/gpsd | |
parent | 12465c3b11e4a7517a92480980f1ce2f8a877e71 (diff) | |
parent | 2ba73a35c4907336858320b31ce515a6aa10698f (diff) | |
download | meta-mlinux-0d53f1437fcdbae1c1b112b9892be8994cef3834.tar.gz meta-mlinux-0d53f1437fcdbae1c1b112b9892be8994cef3834.tar.bz2 meta-mlinux-0d53f1437fcdbae1c1b112b9892be8994cef3834.zip |
Change priority of gpsd and add multitech GPS device to default.
Diffstat (limited to 'recipes-navigation/gpsd/gpsd')
-rwxr-xr-x | recipes-navigation/gpsd/gpsd/gpsd | 8 | ||||
-rw-r--r-- | recipes-navigation/gpsd/gpsd/gpsd-default | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/recipes-navigation/gpsd/gpsd/gpsd b/recipes-navigation/gpsd/gpsd/gpsd index ba73daf..c08be9b 100755 --- a/recipes-navigation/gpsd/gpsd/gpsd +++ b/recipes-navigation/gpsd/gpsd/gpsd @@ -52,10 +52,10 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test \ + /usr/sbin/start-stop-daemon -N -20 --start --quiet --pidfile $PIDFILE --exec $DAEMON --test \ -- $GPSD_OPTIONS -P $PIDFILE $GPS_DEVICES > /dev/null \ || return 1 - start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + /usr/sbin/start-stop-daemon -N -20 --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $GPSD_OPTIONS -P $PIDFILE $GPS_DEVICES \ || return 2 } @@ -70,7 +70,7 @@ do_stop() # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred - start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + /usr/sbin/start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. @@ -87,7 +87,7 @@ do_reload() { # restarting (for example, when it is sent a SIGHUP), # then implement that here. # - start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + /usr/sbin/start-stop-daemon -N -20 --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } diff --git a/recipes-navigation/gpsd/gpsd/gpsd-default b/recipes-navigation/gpsd/gpsd/gpsd-default index 0ceff03..fe8576a 100644 --- a/recipes-navigation/gpsd/gpsd/gpsd-default +++ b/recipes-navigation/gpsd/gpsd/gpsd-default @@ -1,5 +1,6 @@ # If you must specify a non-NMEA driver, uncomment and modify the next line GPSD_SOCKET="/var/run/gpsd.sock" -GPSD_OPTIONS="" -GPS_DEVICES="" +GPSD_OPTIONS="-n -D 1" +# Conduit 0.1 GPS devices +GPS_DEVICES="/dev/ttyXRUSB2 /dev/pps0" |