Created
February 22, 2013 20:22
-
-
Save skt-bford/5016293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
dd if=/dev/zero of=/swapfile bs=1024 count=512k | |
mkswap /swapfile | |
swapon /swapfile | |
echo " | |
/swapfile swap swap defaults 0 0" >>/etc/fstab | |
chmod 0600 /swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment