From c88e95ce33f30f67726ac086c1b8d020b1024ebc Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 7 Jan 2023 15:04:07 -0500 Subject: [PATCH] output --- .../cold-boot-attack-defense-kexec-prepare | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 945e5b3..0aca0a8 100755 --- a/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare +++ b/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare @@ -21,16 +21,16 @@ kernel=$(echo "$cmdline" | grep -o 'BOOT_IMAGE=\S*' | cut -d '=' -f 2) initrd=$(echo "$kernel" | sed "s#vmlinuz#initrd.img#") if test -e $initrd; then - echo "Initrd File Found" + echo "$0: INFO: Initrd File Found" else - echo "Initrd File NOT FOUND" + echo "$0: ERROR: Initrd File NOT FOUND" exit 1 fi if test -e $kernel; then - echo "Kernel File Found" + echo "$0: INFO: Kernel File Found" else - echo "Kernel File NOT FOUND" + echo "$0: ERROR: Kernel File NOT FOUND" exit 1 fi @@ -45,7 +45,7 @@ elif systemctl list-jobs | grep "halt.target" | grep -q "start"; then wram="yes" wact="halt" else - echo "No shutdown option found!" + echo "$0: ERROR: No shutdown option found!" exit 0 fi