unbind_all_network_devices: fix regexp to cover all pci devices
http://www.qubes-os.org/trac/ticket/19
This commit is contained in:
parent
df82fa8282
commit
67bf660255
@ -35,7 +35,7 @@ def find_net_devices():
|
||||
raise IOError
|
||||
|
||||
net_devices = set()
|
||||
rx_netdev = re.compile (r"^([0-9][0-9]:[0-9][0-9].[0-9]) \"02")
|
||||
rx_netdev = re.compile (r"^([0-9a-f][0-9a-f]:[0-9a-f][0-9a-f].[0-9]) \"02")
|
||||
for dev in str(result[0]).splitlines():
|
||||
match = rx_netdev.match (dev)
|
||||
if match is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user