summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-01-16 17:40:19 -0600
committerJohn Klug <john.klug@multitech.com>2017-01-16 17:40:19 -0600
commit75b853c9fd44d63086ecda236c5afe5ef84e6d08 (patch)
treee8ce3d06132b5941ed07e4ea7a79735465ee944d /recipes-navigation/gpsd
parentbb46a5f01f16f8517f0daa2469b53e35a178b770 (diff)
downloadmeta-mlinux-75b853c9fd44d63086ecda236c5afe5ef84e6d08.tar.gz
meta-mlinux-75b853c9fd44d63086ecda236c5afe5ef84e6d08.tar.bz2
meta-mlinux-75b853c9fd44d63086ecda236c5afe5ef84e6d08.zip
Must exit if GPS not found on old conduit
Diffstat (limited to 'recipes-navigation/gpsd')
-rwxr-xr-xrecipes-navigation/gpsd/gpsd/gpsd9
1 files changed, 6 insertions, 3 deletions
diff --git a/recipes-navigation/gpsd/gpsd/gpsd b/recipes-navigation/gpsd/gpsd/gpsd
index e12d1c4..257728d 100755
--- a/recipes-navigation/gpsd/gpsd/gpsd
+++ b/recipes-navigation/gpsd/gpsd/gpsd
@@ -29,12 +29,15 @@ DAEMON=/usr/sbin/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
-# Exit if the package is not installed
-[ -x "$DAEMON" ] || exit 0
-
# Read configuration, if present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+# Exit if no gps found
+([[ -n $GPS_LINE ]] && [[ -c $GPS_LINE ]]) || exit 0
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
if [ -z "$GPSD_SOCKET" ] && [ -z "$DEVICES" ]; then
GPSD_SOCKET=/var/run/gpsd.sock
fi