Fix (/usr could not be mounted yet, so there is no grep(1) available) and

simplify checking for g_eli module.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2005-08-14 22:16:34 +00:00
parent a73148d28d
commit adf98e7afa

View File

@ -47,7 +47,7 @@ geli_start()
fi
geli load >/dev/null 2>&1
if ! kldstat -v | grep -q g_eli\$; then
if ! kldstat -m g_eli >/dev/null 2>&1; then
err 1 'geom_eli module failed to load.'
fi