Skip to content

Instantly share code, notes, and snippets.

View iveoles's full-sized avatar

Adam Greer iveoles

View GitHub Profile
#!/bin/sh
# size of swapfile in megabytes
swapsize=4096
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then