summaryrefslogtreecommitdiff
path: root/gpsd.hotplug
diff options
context:
space:
mode:
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