properties = device.GetProperties()
+ if "Interface" not in properties.keys():
+ continue
+
if properties["Interface"] != sys.argv[1]:
- continue;
+ continue
print "Disabling device %s" % (path)
properties = device.GetProperties()
+ if "Interface" not in properties.keys():
+ continue
+
if properties["Interface"] != sys.argv[1]:
- continue;
+ continue
print "Enabling device %s" % (path)
properties = device.GetProperties()
+ if "Interface" not in properties.keys():
+ continue
+
if interface != "" and properties["Interface"] != interface:
continue