summaryrefslogtreecommitdiff
path: root/gpsd.hotplug
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-15 02:32:07 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-15 02:32:07 +0000
commit4fb74a6a10973a8e332ac3aa4ba2bafae9dcab75 (patch)
treeeb5722c25f9ee62c279722b69e24b1b93ef20b76 /gpsd.hotplug
parent80d5215a56b3dba4ea0e165eacb36dac976044e9 (diff)
downloadgpsd-4fb74a6a10973a8e332ac3aa4ba2bafae9dcab75.tar.gz
Fix a problem with hotplugging.
Diffstat (limited to 'gpsd.hotplug')
-rwxr-xr-xgpsd.hotplug2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsd.hotplug b/gpsd.hotplug
index fbb5d106..9a67da31 100755
--- a/gpsd.hotplug
+++ b/gpsd.hotplug
@@ -49,8 +49,10 @@ def gpsd_control(action, argument):
# able to use this device after dropping root privileges.
os.chmod(argument, stat.S_IMODE(os.stat(argument)[stat.ST_MODE])|0660)
connect.write("+%s\r\n" % argument)
+ connect.readline()
elif action == 'remove':
connect.write("-%s\r\n" % argument)
+ connect.readline()
connect.close()
#syslog.syslog("gpsd_control ends")
return action