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:
parent
92e73f5711
commit
d22761024e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user