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 ]]