You can clone with
# automount-swaps scans for any block devices with type swap (as
# identified by blkid) and activates them with swapon.
description "Automount swap devices"
start on all-swaps #generated by mountall
logger -t automount-swaps "Starting automount-swaps."
blkid -t TYPE=swap -o device | while read d; do
if ! ( swapon -s | grep -q "$d" ); then
printf "Activating %s\n" "$d" | logger -t automount-swaps
swapon --fixpgsz $d