2008-03-03 02:44:01 +05:30
|
|
|
#!@PREFIX@/sbin/runscript
|
2009-05-01 19:41:40 +05:30
|
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
2008-03-01 16:09:36 +05:30
|
|
|
# All rights reserved. Released under the 2-clause BSD license.
|
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
before fsck
|
2009-07-01 04:37:32 +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
|
|
|
}
|