Undo SWAP removal

This commit is contained in:
Taylor Helsper 2020-05-16 23:28:13 -05:00
parent 7a64fd92e6
commit d107e86b20

View File

@ -326,11 +326,9 @@ if [ $IS_RASPI -eq 1 ] || [ $IS_ROCKPRO64 -eq 1 ]; then
dd if=/dev/zero of=/mnt/hdd/swapfile count=1000 bs=1MiB
chmod 600 /mnt/hdd/swapfile
fi
# Only setup swap for low-mem devices
if [ "$TOTAL_RAM_GB" -lt "4" ]; then
mkswap /mnt/hdd/swapfile
dphys-swapfile swapon
fi
fi