diff options
author | pjd <pjd@FreeBSD.org> | 2005-09-23 23:53:35 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-09-23 23:53:35 +0000 |
commit | 0b524fa9c8ccacdec0c6299d368e15d2a78e83a7 (patch) | |
tree | ff86f27b443444c9555f40805f7b47f7827283c2 | |
parent | 7386c5229413cf5854510293b5354c1edb72d33d (diff) | |
download | FreeBSD-src-0b524fa9c8ccacdec0c6299d368e15d2a78e83a7.zip FreeBSD-src-0b524fa9c8ccacdec0c6299d368e15d2a78e83a7.tar.gz |
Simplify the code a bit by using newly added (to kldstat(8) '-q') option.
-rw-r--r-- | etc/rc.d/geli | 5 |
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 |