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 | |
# curl -sL https://gist.githubusercontent.com/iuridiniz/8cc331f4cc22f266b6c2614bfefbd46e/raw/00-swap.sh | bash - | |
set -x -e | |
[ -e /swap ] && exit 1 | |
# create swap file | |
dd if=/dev/zero of=/swap count=2048 bs=1M | |
# format the file |