diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-15 02:32:07 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-15 02:32:07 +0000 |
commit | 4fb74a6a10973a8e332ac3aa4ba2bafae9dcab75 (patch) | |
tree | eb5722c25f9ee62c279722b69e24b1b93ef20b76 /gpsd.hotplug | |
parent | 80d5215a56b3dba4ea0e165eacb36dac976044e9 (diff) | |
download | gpsd-4fb74a6a10973a8e332ac3aa4ba2bafae9dcab75.tar.gz |
Fix a problem with hotplugging.
Diffstat (limited to 'gpsd.hotplug')
-rwxr-xr-x | gpsd.hotplug | 2 |
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 |