summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-12-31 10:29:25 +0000
committerSean Whitton <spwhitton@spwhitton.name>2019-12-31 10:29:25 +0000
commit417cbf5d0cc97e75fea24065b749c18535cb5fe6 (patch)
tree4d48052f932ed06d3ba7843a62b42632ab78bd89
parent0ffeaf3b682d4553c81e1a207efc7d77a250dd6f (diff)
downloaddotfiles-417cbf5d0cc97e75fea24065b749c18535cb5fe6.tar.gz
add another -q
Does not, of course, actually display whole output.
-rwxr-xr-xbin/ata-secure-erase4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/ata-secure-erase b/bin/ata-secure-erase
index b59d71b5..58609056 100755
--- a/bin/ata-secure-erase
+++ b/bin/ata-secure-erase
@@ -34,9 +34,7 @@ mount | grep -qv "$device"
# # that scrub(1) can do anything meaningful to an
# # SSD; uncomment if wanted when running this script
-# no -q on the grep here as we want one output of `hdparm -I` to be
-# displayed
-sudo hdparm -I "$device" | grep "not frozen"
+sudo hdparm -I "$device" | grep -q "not frozen"
sudo hdparm --user-master u --security-set-pass Eins "$device"
sudo hdparm -I "$device" | grep -qv "not enabled"