3 # Add additional swap files
5 # $FreeBSD: src/etc/rc.d/addswap,v 1.2 2002/10/12 10:31:31 schweikh Exp $
15 start_cmd
="addswap_start"
24 if [ -w "${swapfile}" ]; then
25 # load vn kernel module if needed
26 kldstat
-qm vn || kldload
-n vn ||
exit 1
27 echo "Adding ${swapfile} as additional swap"
28 vnconfig
-e vn0
${swapfile} swap