unbind_all_network_devices: fix regexp to cover all pci devices

http://www.qubes-os.org/trac/ticket/19
This commit is contained in:
Joanna Rutkowska 2010-05-07 15:55:27 +02:00
parent df82fa8282
commit 67bf660255

View File

@ -35,7 +35,7 @@ def find_net_devices():
raise IOError raise IOError
net_devices = set() 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(): for dev in str(result[0]).splitlines():
match = rx_netdev.match (dev) match = rx_netdev.match (dev)
if match is not None: if match is not None: