diff options
author | flz <flz@FreeBSD.org> | 2006-05-18 16:04:56 +0000 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2006-05-18 16:04:56 +0000 |
commit | 2b8bb5dee2d247cff23441f5355959f826ec5457 (patch) | |
tree | 896a2a6dd792293165f1d23619f61cf54449f9ea /etc/rc.d/mdconfig | |
parent | 3d58ab6ef3bedfa3b3edb454ac4b509eaca930ed (diff) | |
download | FreeBSD-src-2b8bb5dee2d247cff23441f5355959f826ec5457.zip FreeBSD-src-2b8bb5dee2d247cff23441f5355959f826ec5457.tar.gz |
Remove the require_kld function I just committed and replace with a nicer solution.
Reported by: pjd
Approved by: cperciva
Diffstat (limited to 'etc/rc.d/mdconfig')
-rw-r--r-- | etc/rc.d/mdconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/mdconfig b/etc/rc.d/mdconfig index 8ee3b2a..b02990f 100644 --- a/etc/rc.d/mdconfig +++ b/etc/rc.d/mdconfig @@ -84,7 +84,7 @@ init_variables() fi if [ "${_file}" != "${_file%.uzip}" ]; then # Load geom_uzip kernel module if needed - require_kld geom_uzip + kldstat -q -m g_uzip || kldload geom_uzip || err 1 "geom_uzip failed to load." _dev="/dev/${_md}.uzip" fi for _i in `df ${_file} 2>/dev/null`; do _fs=${_i}; done @@ -103,7 +103,7 @@ mdconfig_start() { local _md _mp _config _type _dev _file _fs _newfs _fsck_cmd - require_kld g_md + kldstat -q -m g_md || kldload geom_md || err 1 "geom_md failed to load." for _md in ${_mdconfig_list}; do init_variables ${_md} |