summaryrefslogtreecommitdiff
path: root/gpsd.hotplug
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-01-09 02:49:09 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-01-09 02:49:09 +0000
commit7e855354b7794090e27a7056d465677e9aa688c9 (patch)
tree7fdb4d1cb736830873c1b6ee2efd61455f229e3a /gpsd.hotplug
parent67f9dd1352082c4dac3c68e59bcfb519efb97f5f (diff)
downloadgpsd-7e855354b7794090e27a7056d465677e9aa688c9.tar.gz
Experimental code for sending hexified binary over the control channel.
Diffstat (limited to 'gpsd.hotplug')
-rwxr-xr-xgpsd.hotplug3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsd.hotplug b/gpsd.hotplug
index eac47675..a70d66a4 100755
--- a/gpsd.hotplug
+++ b/gpsd.hotplug
@@ -52,6 +52,9 @@ def gpsd_control(action, argument):
elif action == 'remove':
connect.sendall("-%s\r\n" % argument)
connect.recv(12)
+ elif action == 'send':
+ connect.sendall("%s\r\n" % argument)
+ connect.recv(12)
connect.close()
#syslog.syslog("gpsd_control ends")
return action