2002-06-13 22:14:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Add additional swap files
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: addswap
|
2012-02-11 06:21:16 +00:00
|
|
|
# REQUIRE: FILESYSTEMS kld
|
2012-09-11 05:04:59 +00:00
|
|
|
# BEFORE: netif
|
2013-06-12 16:44:17 +00:00
|
|
|
# KEYWORD: nojail shutdown
|
2002-06-13 22:14:37 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="addswap"
|
2013-06-27 18:28:45 +00:00
|
|
|
start_cmd=":"
|
|
|
|
stop_cmd=":"
|
|
|
|
rcvar=
|
2002-06-13 22:14:37 +00:00
|
|
|
|
2013-06-27 18:28:45 +00:00
|
|
|
set_rcvar_obsolete swapfile
|
|
|
|
set_rcvar_obsolete geli_swap_flags
|
2002-06-13 22:14:37 +00:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|