rpms/udev/devel start_udev,1.37,1.38
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Aug 2 16:46:38 UTC 2005
Author: harald
Update of /cvs/dist/rpms/udev/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv23324
Modified Files:
start_udev
Log Message:
fixed scsi replay
Index: start_udev
===================================================================
RCS file: /cvs/dist/rpms/udev/devel/start_udev,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- start_udev 25 Jul 2005 03:05:27 -0000 1.37
+++ start_udev 2 Aug 2005 16:46:33 -0000 1.38
@@ -138,8 +138,7 @@
# call hotplug with the scsi devices
scsi_replay () {
- HOTPLUG=$(cat /proc/sys/kernel/hotplug)
- [ -z "$HOTPLUG" ] && return 1
+ HOTPLUG="/sbin/udevsend"
scsi_hosts=$(find_d /sys/devices host\*)
@@ -150,10 +149,8 @@
[ -f $dev ] || continue
DEVPATH=${dev%/type}
DEVPATH=${DEVPATH#/sys}
- export DEVPATH
- export ACTION=add
- $HOTPLUG scsi_device
- $HOTPLUG scsi
+ /bin/env -i DEVPATH="$DEVPATH" SUBSYSTEM=scsi_device ACTION=add $HOTPLUG scsi_device
+ /bin/env -i DEVPATH="$DEVPATH" ACTION=add SUBSYSTEM=scsi $HOTPLUG scsi
done
done
return 0
More information about the fedora-cvs-commits
mailing list