[....] pci_boot_events () { # # FIXME on 2.5, /sys/bus/pci/devices gives some of this # information, and more can be gotten with 'lspci'. # don't expect pcimodules to exist!! # LISTER=`type -p pcimodules` if [ "$LISTER" = "" -o ! -f /proc/bus/pci/devices -o ! -x pci.agent ]; then echo $"** can't synthesize pci hotplug events" return fi # make sure the pci agent will run export ACTION=add export PCI_CLASS=0 export PCI_ID=0:0 export PCI_SLOT=0:0.0 export PCI_SUBSYS_ID=0:0 # these notifications will be handled by pcimodules 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 } [....]