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
#!/bin/sh | |
# Usage: curl <url to the raw script> | sh -s <size in MB> | |
# size of swapfile in megabytes | |
swapsize=1024 | |
if [ $1 ]; | |
then | |
swapsize=$1 |