git://git.onelab.eu
/
bootcd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Order PCI devices by the slot id.
[bootcd.git]
/
initscripts
/
pl_hwinit
diff --git
a/initscripts/pl_hwinit
b/initscripts/pl_hwinit
index
9f598b8
..
80f2849
100755
(executable)
--- a/
initscripts/pl_hwinit
+++ b/
initscripts/pl_hwinit
@@
-38,7
+38,8
@@
def main(argv):
network_devices = 0
missing = []
globals()['loadedmodules'] = file('/tmp/loadedmodules', 'w')
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:
modules = pcimap.get(dev)
base = (dev[4] & 0xff0000) >> 16
if len(modules) == 0: