From 417cbf5d0cc97e75fea24065b749c18535cb5fe6 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 31 Dec 2019 10:29:25 +0000 Subject: add another -q Does not, of course, actually display whole output. --- bin/ata-secure-erase | 4 +--- 1 file changed, 1 insertion(+), 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" -- cgit v1.2.3