From 0477a7230d4a82fdb89a647a172b79b81e096026 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 9 Jun 2017 18:02:31 +0000 Subject: [PATCH] simple swap partition adder creates simple 1gig swap partition that is enabled right away. not sure if this needs to be done every boot or not. --- scripts/system/add_swap_mount.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/system/add_swap_mount.sh diff --git a/scripts/system/add_swap_mount.sh b/scripts/system/add_swap_mount.sh new file mode 100644 index 00000000..64547bd5 --- /dev/null +++ b/scripts/system/add_swap_mount.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#hmmm: should check at each step if it worked. +#hmmm: should be able to add a new swap drive if desired. + + +/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 + +/sbin/mkswap /var/swap.1 + +/sbin/swapon /var/swap.1 + +free + -- 2.34.1