+ config_get fstype "$cfg" fstype 'auto'
+ config_get options "$cfg" options '-rw'
+ config_get_bool enabled "$cfg" "enabled" '1'
+ [ "$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