dotfiles/scripts/fstrim-enable.sh
Michał Krawczyk 8abc519eb6
First commit
Signed-off-by: Michał Krawczyk <nev@nevy.xyz>
2025-06-23 14:23:53 +02:00

10 lines
233 B
Bash
Executable file

#! /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