From c1a914f30489a1c5785a443f2d86cbd01bebdb1a Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Fri, 26 Jul 2024 23:10:14 -0400 Subject: [PATCH] Add swap.sh --- swap.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 swap.sh diff --git a/swap.sh b/swap.sh new file mode 100644 index 0000000..fc9d4cc --- /dev/null +++ b/swap.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +dd if=/dev/zero of=/swapfile bs=1m count=1024 +chown 600 /swapfile +mkswap /swapfile +swapon /swapfile