From 9ec013ddc993b8113432c977767e2adc25e0dcfd Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sat, 2 Aug 2014 16:24:45 -0400 Subject: [PATCH 1/1] Ajout script fstrim pour disques SSD --- scripts/Makefile.am | 1 + scripts/run-fstrim.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 scripts/run-fstrim.sh diff --git a/scripts/Makefile.am b/scripts/Makefile.am index a6ec109..6feb3fb 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -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 index 0000000..503bdc3 --- /dev/null +++ b/scripts/run-fstrim.sh @@ -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 -- 2.20.1