9 lines
131 B
Bash
Executable File
9 lines
131 B
Bash
Executable File
#!/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
|