diff options
author | John Klug <john.klug@multitech.com> | 2017-01-16 17:40:19 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-01-16 17:40:19 -0600 |
commit | 75b853c9fd44d63086ecda236c5afe5ef84e6d08 (patch) | |
tree | e8ce3d06132b5941ed07e4ea7a79735465ee944d /recipes-navigation/gpsd | |
parent | bb46a5f01f16f8517f0daa2469b53e35a178b770 (diff) | |
download | meta-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-x | recipes-navigation/gpsd/gpsd/gpsd | 9 |
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 |