vnconfig(8) -> mdconfig(8).

Reviewed by:	phk
This commit is contained in:
Ruslan Ermilov 2001-04-10 16:15:01 +00:00
parent e572fcd463
commit 9e3b28a80f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75384

4
etc/rc
View File

@ -346,9 +346,9 @@ case ${swapfile} in
[Nn][Oo] | '')
;;
*)
if [ -w "${swapfile}" -a -c /dev/vn0b ]; then
if [ -w "${swapfile}" -a -c /dev/mdctl ]; then
echo "Adding ${swapfile} as additional swap"
vnconfig /dev/vn0b ${swapfile} && swapon /dev/vn0b
mdev=`mdconfig -a -t vnode -f ${swapfile}` && swapon /dev/${mdev}
fi
;;
esac