diff -ruN hotplug-2004_03_29.orig/etc/hotplug/pci.rc hotplug-2004_03_29/etc/hotplug/pci.rc
--- hotplug-2004_03_29.orig/etc/hotplug/pci.rc	2004-06-06 18:26:37.000000000 +0200
+++ hotplug-2004_03_29/etc/hotplug/pci.rc	2004-06-06 18:26:27.000000000 +0200
@@ -25,8 +25,7 @@
     if [ -d /sys/bus ]; then
 	# 2.6 kernels
 	if [ -d /sys/bus/pci/devices/ ]; then
-	    cd /sys/bus/pci/devices/
-	    for PCI_DEVICE in *; do
+	    for PCI_DEVICE in /sys/bus/pci/devices/*; do
 		set `echo $PCI_DEVICE \
 		    | sed -e 's/\([^:]*\):\(.*\):\(.*\)\.\(.*\)/\1 \2 \3 \4/'`
 		PCI_SLOT_NAME=$2:$3.$4
@@ -45,7 +44,7 @@
 		       continue;;
 		  esac
                 fi
-		/sbin/hotplug pci
+		./pci.agent
 	    done
 	fi
     else
