2013-12-22 02:21:11 +05:30
|
|
|
#!@SBINDIR@/openrc-run
|
2009-05-01 19:41:40 +05:30
|
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
2011-06-30 05:16:31 +05:30
|
|
|
# Released under the 2-clause BSD license.
|
2008-03-01 16:09:36 +05:30
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
before fsck
|
2012-07-03 08:34:22 +05:30
|
|
|
keyword -jail -prefix
|
2008-03-01 16:09:36 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
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 15:19:07 +05:30
|
|
|
}
|
2008-03-01 16:09:36 +05:30
|
|
|
|
|
|
|
stop()
|
|
|
|
{
|
|
|
|
ebegin "Deactivating block swap devices"
|
|
|
|
swapctl -U -t blk >/dev/null
|
2011-01-17 15:19:07 +05:30
|
|
|
eend 0
|
2008-03-01 16:09:36 +05:30
|
|
|
}
|