#!/usr/bin/env bash if [ "$(id -u)" -ne 0 ]; then echo "This script must be run as root." >&2 exit 1 fi /usr/sbin/fstrim -av