freebsd-skq/etc/rc.d/swap1
Mike Makonnen 45a5dc937d Add a -q flag to swapon(8) to suppress informational messages. Use it in
rc.d.
Note: errors are not affected by this flag.
2008-06-23 22:17:08 +00:00

18 lines
199 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: localswap
# REQUIRE: disks
# KEYWORD: nojail shutdown
. /etc/rc.subr
name="swap1"
start_cmd='swapon -aq'
stop_cmd=':'
load_rc_config swap
run_rc_command "$1"