From b811e3911da46870cbd974d6690d20a9ced44d87 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 12 Apr 2012 11:06:07 -0400 Subject: Make it possible to pass in options via /etc/default/gpsd From a suggestion by Charles Curley. --- gpsd.hotplug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gpsd.hotplug') diff --git a/gpsd.hotplug b/gpsd.hotplug index dd0deafa..7aca86cd 100644 --- a/gpsd.hotplug +++ b/gpsd.hotplug @@ -6,7 +6,8 @@ # 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: +# It will accept from /etc/sysconfig/gpsd or /etc/default/gpsd +# the following config variables: # # CONTROL_SOCKET = location of the gpsd control socket # OPTIONS = options to be passed to gpsd on launch @@ -24,6 +25,8 @@ export PATH if [ -r /etc/default/gpsd ]; then . /etc/default/gpsd + GPSD_OPTIONS=$OPTIONS + GPSD_SOCKET=$CONTROL_SOCKET elif [ -r /etc/sysconfig/gpsd ]; then . /etc/sysconfig/gpsd GPSD_OPTIONS=$OPTIONS -- cgit v1.2.1