summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-09-23 23:53:35 +0000
committerpjd <pjd@FreeBSD.org>2005-09-23 23:53:35 +0000
commit0b524fa9c8ccacdec0c6299d368e15d2a78e83a7 (patch)
treeff86f27b443444c9555f40805f7b47f7827283c2 /etc
parent7386c5229413cf5854510293b5354c1edb72d33d (diff)
downloadFreeBSD-src-0b524fa9c8ccacdec0c6299d368e15d2a78e83a7.zip
FreeBSD-src-0b524fa9c8ccacdec0c6299d368e15d2a78e83a7.tar.gz
Simplify the code a bit by using newly added (to kldstat(8) '-q') option.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/geli5
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/rc.d/geli b/etc/rc.d/geli
index a5d959d..f642589 100644
--- a/etc/rc.d/geli
+++ b/etc/rc.d/geli
@@ -46,10 +46,7 @@ geli_start()
return
fi
- geli load >/dev/null 2>&1
- if ! kldstat -m g_eli >/dev/null 2>&1; then
- err 1 'geom_eli module failed to load.'
- fi
+ kldstat -q -m g_eli || geli load || err 1 'geom_eli module failed to load.'
if [ -z "${geli_tries}" ]; then
if [ -n "${geli_attach_attempts}" ]; then
OpenPOWER on IntegriCloud