mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 06:42:45 +00:00
vnconfig(8) -> mdconfig(8).
Reviewed by: phk
This commit is contained in:
parent
e572fcd463
commit
9e3b28a80f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75384
4
etc/rc
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user