MFC: don't check for /dev/mdctl and let mdconfig load the module if needed

Approved by:	philip
This commit is contained in:
matteo 2006-01-20 14:24:34 +00:00
parent 2f6c15280f
commit 7ebcfcdd9a

View File

@ -22,7 +22,7 @@ addswap_start()
[Nn][Oo] | '') [Nn][Oo] | '')
;; ;;
*) *)
if [ -w "${swapfile}" -a -c /dev/mdctl ]; then if [ -w "${swapfile}" ]; then
echo "Adding ${swapfile} as additional swap" echo "Adding ${swapfile} as additional swap"
mdev=`mdconfig -a -t vnode -f ${swapfile}` && swapon /dev/${mdev} mdev=`mdconfig -a -t vnode -f ${swapfile}` && swapon /dev/${mdev}
fi fi