Displaying 1 result from an estimated 1 matches for "udev_cmd".
Did you mean:
prev_cmd
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...m("rm -rf %s") % target
+ else:
+ os.system("shred -u /config%s") % target
+ os.system("shred -u %s") % target
+
+
+# compat function to handle different udev versions
+def udev_info(name, query):
+ # old udev command with shortopts
+ udev_cmd = "udevinfo -n %s -q %s" % (name, query)
+ udev = subprocess.Popen(udev_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+ udev_output = udev.stdout.read()
+ udev.poll()
+ udev_rc = udev.returncode()
+ if udev_rc > 0:
+ udev_cmd = "udevadm info --name=%s --query=...