DragonFly BSD
DragonFly submit List (threaded) for 2003-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

vnconfig ${swapfile}


From: Skip Ford <skip.ford@xxxxxxxxxxx>
Date: Sat, 18 Oct 2003 06:55:07 -0400

Use vnconfig to enable ${swapfile} instead of mdconfig.

Index: addswap
===================================================================
RCS file: /home/dcvs/src/etc/rc.d/addswap,v
retrieving revision 1.1
diff -u -r1.1 addswap
--- addswap	24 Jul 2003 06:35:37 -0000	1.1
+++ addswap	18 Oct 2003 14:49:46 -0000
@@ -23,9 +23,9 @@
 	[Nn][Oo] | '')
 		;;
 	*)
-		if [ -w "${swapfile}" -a -c /dev/mdctl ]; then
+		if [ -w "${swapfile}" -a -c /dev/vn0c ]; then
 			echo "Adding ${swapfile} as additional swap"
-			mdev=`mdconfig -a -t vnode -f ${swapfile}` && swapon /dev/${mdev}
+			vnconfig -e vn0c ${swapfile} swap
 		fi
 		;;
 	esac

-- 
Skip



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]