diff options
author | Fajar A. Nugraha <[email protected]> | 2011-07-07 14:22:19 +0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-07-08 11:43:16 -0700 |
commit | 3af2ce4d6883ab96814fb1d0bc01368bb06c5343 (patch) | |
tree | 7b8ddda0e97cf62b97c1847c6625dad425a6e48b /etc/init.d | |
parent | 341b5f1d4c03c0f318218346154e2fb79a8acb92 (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
Diffstat (limited to 'etc/init.d')
-rw-r--r-- | etc/init.d/zfs.redhat | 6 |
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 |