# Note: swapctl exits status 2 if there are no swap devices
# TODO: ZFS
foreground { swapctl -A -t blk }
if { importas code ? eltest $code -eq 0 -o $code -eq 2 }
if { mount -a }
foreground { swapctl -A -t noblk }
importas code ? eltest $code -eq 0 -o $code -eq 2
