2008-03-03 02:44:01 +05:30
|
|
|
#!@PREFIX@/sbin/runscript
|
2008-03-01 16:09:36 +05:30
|
|
|
# Copyright 2007-2008 Roy Marples <roy@marples.name>
|
|
|
|
# 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
|
|
|
|
}
|