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
This commit is contained in:
Fajar A. Nugraha 2011-07-07 14:22:19 +07:00 committed by Brian Behlendorf
parent 341b5f1d4c
commit 3af2ce4d68
1 changed files with 5 additions and 1 deletions

View File

@ -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