diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-06-25 05:08:34 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-06-25 05:08:34 -0400 |
commit | cf27874ac76d8cfb077ca41d37857ab0cce224ba (patch) | |
tree | 010ce90eed7cfa2060439a8445e8372ad2b00dc9 /gpsd.hotplug | |
parent | 711a3f84129445b2d21ff7233fbec9cb8db5130b (diff) | |
download | gpsd-cf27874ac76d8cfb077ca41d37857ab0cce224ba.tar.gz |
Clean up after the hotplug system refactoring.
Diffstat (limited to 'gpsd.hotplug')
-rw-r--r-- | gpsd.hotplug | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gpsd.hotplug b/gpsd.hotplug index 9b3de453..f661ac1f 100644 --- a/gpsd.hotplug +++ b/gpsd.hotplug @@ -3,7 +3,8 @@ # This script is the gpsd udev handler for add/remove events on matched USB # devices. It expects to see the following environment variables: # ACTION = either "add" or "remove" -# DEVPATH = the full name of the USB device that was just activated +# DEVNAME = the full name of the USB device that was just activated +# It hands off to gpsdctl for the actual communication with the daemon. # # This file is Copyright (c) 2010 by the GPSD project # BSD terms apply: see the file COPYING in the distribution root for details. @@ -40,7 +41,7 @@ fi logger -t "gpsd.hotplug" -p daemon.info "$ACTION" "$DEVNAME" -if [ -z "$DEVPATH" ] +if [ -z "$DEVNAME" ] then logger -t gpsd.hotplug -p daemon.err "no device" exit 0 |