From 08ad220f6c5bd2a3add4090db49485a7d8eceffd Mon Sep 17 00:00:00 2001 From: optout Date: Thu, 11 Apr 2024 19:19:06 +0000 Subject: [PATCH] Fixed reference positions of system.map & signing keys to ensure deletion | fixed read response with reboot --- self_compilation.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/self_compilation.sh b/self_compilation.sh index e705ade..6806772 100644 --- a/self_compilation.sh +++ b/self_compilation.sh @@ -130,17 +130,15 @@ case "${distroId,,}" in # Remove sysmap/signing keys -rm /lib/modules/"$KVER"/source/certs/signing_key* -rm /lib/modules/"$KVER"/source/System.map -rm /lib/modules/"$KVER"/source -rm /lib/modules/"$KVER"/build +rm /usr/src/linux-hardened-"$KVER"/certs/signing_key* +rm /usr/src/linux-hardened-"$KVER"/System.map + echo "Congrats! Your custom kernel based on the PlagueOS kernel configuration has been installed." -echo "Reboot now? (y/N): " -read reboot_opt - -if [[ "$reboot_opt" == "Y" ]]; then - reboot +read -p "Reboot now? (y/N): " response +response=$(echo $response | tr '[:upper:]' '[:lower:]') +if [[ $response == "y" ]]; then + reboot else - exit + echo "Exiting..." fi \ No newline at end of file