summaryrefslogtreecommitdiff
path: root/system/gpsd/rc.gpsd.new
diff options
context:
space:
mode:
Diffstat (limited to 'system/gpsd/rc.gpsd.new')
-rw-r--r--system/gpsd/rc.gpsd.new7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/gpsd/rc.gpsd.new b/system/gpsd/rc.gpsd.new
index 0eee30306a..0db22b9600 100644
--- a/system/gpsd/rc.gpsd.new
+++ b/system/gpsd/rc.gpsd.new
@@ -12,8 +12,9 @@
gpsd_start() {
- if [ ! -x /lib/udev/gpsd.hotplug.wrapper ]; then
- echo "$(basename $0): /lib/udev/gpsd.hotplug.wrapper not found (or not executable); cannot start."
+ if [ ! -x /lib/udev/gpsd.hotplug ]; then
+ echo "$(basename $0): /lib/udev/gpsd.hotplug not found (or not executable); cannot start."
+ exit 1
fi
if [ -r /etc/rc.d/rc.gpsd.conf ]; then
@@ -27,7 +28,7 @@ gpsd_start() {
for DEVNAME in $GPSD_DEVICES; do
if [ -e $DEVNAME ]; then
echo "$(basename $0): Starting gpsd for $DEVNAME"
- ACTION=add DEVNAME=$DEVNAME /lib/udev/gpsd.hotplug.wrapper
+ ACTION=add DEVNAME=$DEVNAME /lib/udev/gpsd.hotplug
else
echo "$(basename $0): $DEVNAME not found, gpsd not started"
fi