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
|
2008-03-03 02:43:21 +05:30
|
|
|
keyword nojail noprefix
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
stop()
|
|
|
|
{
|
|
|
|
ebegin "Deactivating block swap devices"
|
|
|
|
swapctl -U -t blk >/dev/null
|
|
|
|
eend 0
|
|
|
|
}
|