From 94a0fd38bbd87695c56dab0d129c65ced5e7df0f Mon Sep 17 00:00:00 2001 From: toloveru Date: Sat, 8 Apr 2017 18:25:11 +0200 Subject: [PATCH] Fixed error in kernelcheck program flow --- kernelcheck | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernelcheck b/kernelcheck index 5a15544..3dc8016 100755 --- a/kernelcheck +++ b/kernelcheck @@ -63,16 +63,15 @@ then then /usr/local/sbin/notify_all "Kernel update tracker" "Removing the Manjaro distribution kernel.." --icon=dialog-information pacman -R --noconfirm linux - else - /usr/local/sbin/notify_all "Kernel update tracker" "Removing the current kernel.." --icon=dialog-information - rm -f /boot/initramfs-$current.img - rm -f /boot/vmlinuz-$current - rm -rf /usr/lib/modules/$current fi } ## Uncomment this function only if you really know what you are doing!! ## It removes the Arch / Manjaro distribution kernel, and should only be done if you know how to recover from chroot! # remove_distr_kernel + /usr/local/sbin/notify_all "Kernel update tracker" "Removing the current kernel.." --icon=dialog-information + rm -f /boot/initramfs-$current.img + rm -f /boot/vmlinuz-$current + rm -rf /usr/lib/modules/$current grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null /usr/local/sbin/notify_all "Kernel update tracker" "New kernel installed\!" --icon=dialog-information elif [[ "$latest" == "$current" ]] && [[ ! -z $latest ]]