summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-04-10 16:15:01 +0000
committerru <ru@FreeBSD.org>2001-04-10 16:15:01 +0000
commit367b1f6b19a0f7e6d52fd240a8610fe5e5b861a1 (patch)
tree282824a438023c6285db065a1e3e9972f065b0c1 /etc/rc
parentadb816942e1e14a900a1088aa386bb7eaf7f438f (diff)
downloadFreeBSD-src-367b1f6b19a0f7e6d52fd240a8610fe5e5b861a1.zip
FreeBSD-src-367b1f6b19a0f7e6d52fd240a8610fe5e5b861a1.tar.gz
vnconfig(8) -> mdconfig(8).
Reviewed by: phk
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index adbc987..f298fe2 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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
OpenPOWER on IntegriCloud