diff -ur hotplug-2004_01_05/etc/hotplug/pci.rc hotplug-jlm/etc/hotplug/pci.rc --- hotplug-2004_01_05/etc/hotplug/pci.rc 2003-06-28 02:13:10.000000000 +0200 +++ hotplug-jlm/etc/hotplug/pci.rc 2004-01-28 23:04:42.000000000 +0100 @@ -47,12 +47,17 @@ export ACTION PCI_CLASS PCI_ID PCI_SLOT PCI_SUBSYS_ID # these notifications will be handled by pcimodules - for BUS in `cd /proc/bus/pci;find * -type d -print`; do - for SLOT_FUNC in `cd /proc/bus/pci/$BUS; echo *`; do - PCI_SLOT=$BUS:$SLOT_FUNC - : hotplug pci for $PCI_SLOT - /sbin/hotplug pci - done + #for BUS in `cd /proc/bus/pci;find * -type d -print`; do + # for SLOT_FUNC in `cd /proc/bus/pci/$BUS; echo *`; do + # PCI_SLOT=$BUS:$SLOT_FUNC + # : hotplug pci for $PCI_SLOT + # /sbin/hotplug pci + # done + #done + gawk -F ' ' '{printf("%s:%s\n",toupper(substr($2,0,4)), toupper(substr($2,5,4)) )}' \ + /proc/bus/pci/devices | + while read PCI_ID; do + /sbin/hotplug pci done }