MFC: don't check for /dev/mdctl and let mdconfig load the module if needed
Approved by: philip
This commit is contained in:
parent
2f6c15280f
commit
7ebcfcdd9a
@ -22,7 +22,7 @@ addswap_start()
|
||||
[Nn][Oo] | '')
|
||||
;;
|
||||
*)
|
||||
if [ -w "${swapfile}" -a -c /dev/mdctl ]; then
|
||||
if [ -w "${swapfile}" ]; then
|
||||
echo "Adding ${swapfile} as additional swap"
|
||||
mdev=`mdconfig -a -t vnode -f ${swapfile}` && swapon /dev/${mdev}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user