From 5d4cc9005a43f2ab55eae895dcb3a3d78c72ad6d Mon Sep 17 00:00:00 2001 From: Ian Mancini Date: Sat, 9 May 2020 21:15:41 -0300 Subject: [PATCH] Add SSD TRIM setup script --- setup/setup_trim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 setup/setup_trim diff --git a/setup/setup_trim b/setup/setup_trim new file mode 100755 index 0000000..40710f8 --- /dev/null +++ b/setup/setup_trim @@ -0,0 +1,11 @@ +#!/bin/sh + +set -Eeo pipefail + +if (( $EUID != 0 )); then + echo "Should be run as root" + exit 1 +fi + +systemctl enable fstrim.timer +systemctl start fstrim.service