From 3af2ce4d6883ab96814fb1d0bc01368bb06c5343 Mon Sep 17 00:00:00 2001 From: "Fajar A. Nugraha" <github@fajar.net> Date: Thu, 7 Jul 2011 14:22:19 +0700 Subject: [PATCH] Check for "udevadm settle" vs "udevsettle" RHEL5 does not have udevadm, so fix initscript accordingly Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #315 --- etc/init.d/zfs.redhat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/init.d/zfs.redhat b/etc/init.d/zfs.redhat index c1f2fb833a..d3475f09d2 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