2013-02-12 17:09:50 -05:00
|
|
|
#!@SBINDIR@/runscript
|
2009-05-01 15:11:40 +01:00
|
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
2011-06-29 19:46:31 -04:00
|
|
|
# Released under the 2-clause BSD license.
|
2008-03-01 10:39:36 +00:00
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
before fsck
|
2012-07-02 22:04:22 -05:00
|
|
|
keyword -jail -prefix
|
2008-03-01 10:39:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
start()
|
|
|
|
{
|
|
|
|
ebegin "Activating block swap devices"
|
|
|
|
swapctl -A -t blk >/dev/null
|
|
|
|
eend 0 # If swapon has nothing todo it errors, so always return 0
|
2011-01-17 04:49:07 -05:00
|
|
|
}
|
2008-03-01 10:39:36 +00:00
|
|
|
|
|
|
|
stop()
|
|
|
|
{
|
|
|
|
ebegin "Deactivating block swap devices"
|
|
|
|
swapctl -U -t blk >/dev/null
|
2011-01-17 04:49:07 -05:00
|
|
|
eend 0
|
2008-03-01 10:39:36 +00:00
|
|
|
}
|