# generate fstab file

# set default fstab global
uci add fstab global
uci set fstab.@global[-1].anon_swap='1'
uci set fstab.@global[-1].auto_swap='1'

# set default fstab swap
uci add fstab swap
uci set fstab.@swap[-1].enabled='1'
uci set fstab.@swap[-1].device='/dev/sda3'
uci set fstab.@swap[-1].label='swap-0'

# set default fstab swap
uci add fstab swap
uci set fstab.@swap[-1].enabled='1'
uci set fstab.@swap[-1].device='/dev/sda4'
uci set fstab.@swap[-1].label='swap-1'

uci commit

exit 0
