summaryrefslogtreecommitdiff
path: root/gpsd.hotplug
diff options
context:
space:
mode:
authorBernd Zeimetz <bernd@bzed.de>2009-11-01 21:30:28 +0000
committerBernd Zeimetz <bernd@bzed.de>2009-11-01 21:30:28 +0000
commite24b47e67c8e68fddcd05b54e8ba135f5cc740de (patch)
tree18eaf770bf567924eba7c457c2c0f38ba3ff5942 /gpsd.hotplug
parent026cf00e65f1362e61058d09857f60fa356eb052 (diff)
downloadgpsd-e24b47e67c8e68fddcd05b54e8ba135f5cc740de.tar.gz
Use __file__ as location of the holtplug script.
Diffstat (limited to 'gpsd.hotplug')
-rwxr-xr-xgpsd.hotplug2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.hotplug b/gpsd.hotplug
index a70d66a4..5c9f100d 100755
--- a/gpsd.hotplug
+++ b/gpsd.hotplug
@@ -7,7 +7,7 @@
import sys, time, os, syslog, glob, socket, stat
CONTROL_SOCKET = "/var/run/gpsd.sock"
-WHEREAMI = "/etc/hotplug/usb/gpsd.hotplug"
+WHEREAMI = __file__
def gpsd_control_connect():
"Acquire a connection to the GPSD control socket."