From: Hugo Villeneuve Date: Sat, 2 Aug 2014 20:24:45 +0000 (-0400) Subject: Ajout script fstrim pour disques SSD X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=9ec013ddc993b8113432c977767e2adc25e0dcfd;p=hvutilities.git Ajout script fstrim pour disques SSD --- 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