steamdeck-mm/enable-secondary-swap

14 lines
316 B
Bash
Executable File

#!/bin/bash
if [ -f /home/swapfile2 ]; then
echo "Secondary swap exists, exitting"
exit 1
fi
sudo /usr/bin/dd if=/dev/zero of=/home/swapfile2 bs=1G count=8
sudo /usr/bin/chmod 0600 /home/swapfile2
sudo /usr/bin/mkswap /home/swapfile2
sudo /usr/bin/swapon /home/swapfile2
read -p "Done, press any key to continue"