From 821249b0e0a9f8a59a85928138a807a8addf7c7b Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 13 Sep 2024 17:04:44 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 37d3187..7ab0ace 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +```markdown # Swap File Creation Script This script automatically creates a swap file on your system, allowing you to increase the available virtual memory. It calculates the optimal swap file size based on the available disk space, ensuring that the swap file does not exceed 30GB or 5% of the free disk space, whichever is smaller. @@ -30,8 +31,6 @@ To ensure the swap file is persisted across reboots, run the script with the `-- curl -sSL https://git.nixc.us/colin/swap-increase/raw/branch/main/swap.sh | bash -s -- --persist ``` -This will automatically add the swap file to `/etc/fstab`, so it is activated after a system reboot. - ## Output The script will provide the following output: @@ -44,3 +43,4 @@ The script will provide the following output: ## Note This script requires `sudo` privileges to create and activate the swap file, as well as to modify the `/etc/fstab` file for persistence across reboots when using the `--persist` flag. +``` \ No newline at end of file