[main]
@type = oneshot
@version = @vers@
@description = "Mount swap partition"
@user = ( root )
@depends=( mount-rw )

[start]
@execute =
(
    if { 66-yeller -cdp mount-swap -1 /dev/console activate swap }

        if -nt {

            swapon -a

        }
        66-yeller -fcdp mount-swap -1 /dev/console unable to activate the swap!

)

[stop]
@execute =
(
    if { 66-yeller -cdp mount-swap -1 /dev/console deactivate swap }
    if -nt {

        swapoff -a

    }
    66-yeller -Wcdp mount-swap -1 /dev/console failed!
)

[logger]
@destination = @live_dir@/log/mount-swap
