+ [ "$enabled" -eq 0 ] && options="noauto,$options"
+ echo "$device $target $fstype $options 0 0" >> /tmp/fstab
+}
+
+do_swapon() {
+ local cfg="$1"
+ config_get device "$cfg" device
+ [ -n "$device" ] || return 0
+ config_get_bool enabled "$cfg" "enabled" '1'