summaryrefslogtreecommitdiff
path: root/gpsd.hotplug
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-25 13:19:44 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-25 13:19:44 -0400
commitff831ea34a76f8fc22147f1ddb198de4872a2936 (patch)
tree7faf525d629698f5501fc43bd677eaf5cf607f23 /gpsd.hotplug
parent8284c74513e1cf123bbca9af59548e724749fcdc (diff)
downloadgpsd-ff831ea34a76f8fc22147f1ddb198de4872a2936.tar.gz
Add some more documentation.
Diffstat (limited to 'gpsd.hotplug')
-rw-r--r--gpsd.hotplug10
1 files changed, 10 insertions, 0 deletions
diff --git a/gpsd.hotplug b/gpsd.hotplug
index 65531d9d..dd0deafa 100644
--- a/gpsd.hotplug
+++ b/gpsd.hotplug
@@ -2,10 +2,20 @@
#
# 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"
# DEVNAME = the full name of the USB device that was just activated
+#
+# It will accept from /etc/sysconfig/gpsd the following config variables:
+#
+# CONTROL_SOCKET = location of the gpsd control socket
+# OPTIONS = options to be passed to gpsd on launch
+#
# It hands off to gpsdctl for the actual communication with the daemon.
#
+# Do not introduce bashims into this script, as we want it to continue to
+# work under Ubuntu.
+#
# This file is Copyright (c) 2010 by the GPSD project
# BSD terms apply: see the file COPYING in the distribution root for details.