def udev_trigger(subsystem=None): argv = ["trigger"] if subsystem: argv.append("--subsystem-match=%s" % subsystem) sysutils.run("udevadm", argv)
def udev_settle(timeout=None): argv = ["settle"] if timeout: argv.append("--timeout=%d" % int(timeout)) sysutils.run("udevadm", argv)