From 8abc519eb6e684f38400f5155ea21a92054e363b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krawczyk?= Date: Mon, 23 Jun 2025 14:23:53 +0200 Subject: [PATCH] First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MichaƂ Krawczyk --- README.md | 4 ++++ scripts/fstrim-enable.sh | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 README.md create mode 100755 scripts/fstrim-enable.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..79b5043 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Nevy's Dotfiles +My collection of various dotfiles. Mostly for backup purposes and ease of configuration. + +*You probably don't want to just run them on your system. Excercise caution.* diff --git a/scripts/fstrim-enable.sh b/scripts/fstrim-enable.sh new file mode 100755 index 0000000..f157d7e --- /dev/null +++ b/scripts/fstrim-enable.sh @@ -0,0 +1,10 @@ +#! /usr/bin/bash +echo "Checking if FSTrim is enabled" +if sudo systemctl list-timers --no-pager | grep "fstrim"; then + echo "FStrim already enabled" +else + echo "Enabling FSTrim" + sudo systemctl enable fstrim.timer --now +fi + +