diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-31 10:29:25 +0000 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-31 10:29:25 +0000 |
commit | 417cbf5d0cc97e75fea24065b749c18535cb5fe6 (patch) | |
tree | 4d48052f932ed06d3ba7843a62b42632ab78bd89 | |
parent | 0ffeaf3b682d4553c81e1a207efc7d77a250dd6f (diff) | |
download | dotfiles-417cbf5d0cc97e75fea24065b749c18535cb5fe6.tar.gz |
add another -q
Does not, of course, actually display whole output.
-rwxr-xr-x | bin/ata-secure-erase | 4 |
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" |