Fixed error in kernelcheck program flow

This commit is contained in:
toloveru 2017-04-08 18:25:11 +02:00
parent 8181c9be00
commit 94a0fd38bb

View File

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