summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFajar A. Nugraha <[email protected]>2011-07-07 14:22:19 +0700
committerBrian Behlendorf <[email protected]>2011-07-08 11:43:16 -0700
commit3af2ce4d6883ab96814fb1d0bc01368bb06c5343 (patch)
tree7b8ddda0e97cf62b97c1847c6625dad425a6e48b
parent341b5f1d4c03c0f318218346154e2fb79a8acb92 (diff)
Check for "udevadm settle" vs "udevsettle"
RHEL5 does not have udevadm, so fix initscript accordingly Signed-off-by: Brian Behlendorf <[email protected]> Closes #315
-rw-r--r--etc/init.d/zfs.redhat6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/init.d/zfs.redhat b/etc/init.d/zfs.redhat
index c1f2fb833..d3475f09d 100644
--- a/etc/init.d/zfs.redhat
+++ b/etc/init.d/zfs.redhat
@@ -77,7 +77,11 @@ start()
fi
# Delay until all required block devices are present.
- udevadm settle
+ if [ -x /sbin/udevadm ]; then
+ /sbin/udevadm settle
+ elif [ -x /sbin/udevsettle ]; then
+ /sbin/udevsettle
+ fi
# load kernel module infrastructure
if ! grep -q zfs /proc/modules ; then