Order PCI devices by the slot id.
Daniel Hokka Zakrisson [Fri, 21 Nov 2008 22:32:16 +0000 (22:32 +0000)]
initscripts/pl_hwinit

index 9f598b8..80f2849 100755 (executable)
@@ -38,7 +38,8 @@ def main(argv):
     network_devices = 0
     missing = []
     globals()['loadedmodules'] = file('/tmp/loadedmodules', 'w')
-    for (slot, dev) in devices.iteritems():
+    for slot in sorted(devices.keys()):
+        dev = devices[slot]
         modules = pcimap.get(dev)
         base = (dev[4] & 0xff0000) >> 16
         if len(modules) == 0: