Ajout script fstrim pour disques SSD
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 2 Aug 2014 20:24:45 +0000 (16:24 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 2 Aug 2014 20:25:07 +0000 (16:25 -0400)
scripts/Makefile.am
scripts/run-fstrim.sh [new file with mode: 0755]

index a6ec109..6feb3fb 100644 (file)
@@ -15,6 +15,7 @@ dist_bin_SCRIPTS = \
     mail-files mail-if-fail mail-statistics \
     replace.pl \
     rotatelogs \
+    run-fstrim.sh \
     setdate \
     strip-debug-symbols \
     tildes-clean \
diff --git a/scripts/run-fstrim.sh b/scripts/run-fstrim.sh
new file mode 100755 (executable)
index 0000000..503bdc3
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+MOUNT_POINTS="\
+    / \
+    /mnt/rescue \
+    /mnt/hvlinux-latest \
+    /mnt/mint \
+    /mnt/debian \
+    /mnt/stockage"
+
+for mount in ${MOUNT_POINTS}; do
+    fstrim ${mount}
+done