From 83800fcb4fd365aab58a5f70f78f39af7d9371dc Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 7 Jan 2023 15:18:58 -0500 Subject: [PATCH] --no-legend --- .../security-misc/cold-boot-attack-defense-kexec-prepare | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare b/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare index fcf13f7..8d7eb44 100755 --- a/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare +++ b/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare @@ -24,13 +24,13 @@ if ! test -r "$kernel"; then exit 1 fi -if systemctl list-jobs | grep "poweroff.target" | grep -q "start"; then +if systemctl list-jobs --no-legend | grep "poweroff.target" | grep -q "start"; then wiperamexit="yes" wiperamaction="poweroff" -elif systemctl list-jobs | grep "reboot.target" | grep -q "start"; then +elif systemctl list-jobs --no-legend | grep "reboot.target" | grep -q "start"; then wiperamexit="yes" wiperamaction="reboot" -elif systemctl list-jobs | grep "halt.target" | grep -q "start"; then +elif systemctl list-jobs --no-legend | grep "halt.target" | grep -q "start"; then wiperamexit="yes" wiperamaction="halt" else