Remove the module loading magic again; it's not needed after all.

Pointy hat to:	matteo
Submitted by:	matteo
Reviewed by:	pjd
MFC after:	3 days
This commit is contained in:
Philip Paeps 2006-01-17 19:29:31 +00:00
parent 92e73f5711
commit d22761024e

View File

@ -23,14 +23,6 @@ addswap_start()
;;
*)
if [ -w "${swapfile}" ]; then
if ! kldstat -q -m g_md ; then
if kldload g_md ; then
info 'g_md module loaded.'
else
warn 'g_md module failed to load.'
return 1
fi
fi
echo "Adding ${swapfile} as additional swap"
mdev=`mdconfig -a -t vnode -f ${swapfile}` && swapon /dev/${mdev}
fi