void-packages/templates/initscripts/files/rc.d/swap
Juan RP a3190ec48c initscripts: misc changes, bump to 2009-03.
--HG--
extra : convert_revision : 97fb9127cb91659331f1574a19a8871fed30a0ab
2009-03-26 10:07:50 +01:00

20 lines
250 B
Bash
Executable file

#!/bin/sh
#
# PROVIDE: swap
# REQUIRE: SERVERS mountfs
$_rc_subr_loaded . /etc/rc.subr
name="swap"
start_cmd="swap_start"
stop_cmd=":"
swap_start()
{
echo -n "Activating swap... "
swapon -a
show_rval
}
load_rc_config $name
run_rc_command "$1"