[Main]
Type = oneshot
Description = "Mount swap partition"
Depends=( mount-rw )

[Execute]
StdOut = 66log:%%livedir%%/log/mount-swap

[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!
)
