Fixed error in kernelcheck program flow
This commit is contained in:
parent
8181c9be00
commit
94a0fd38bb
@ -63,16 +63,15 @@ then
|
|||||||
then
|
then
|
||||||
/usr/local/sbin/notify_all "Kernel update tracker" "Removing the Manjaro distribution kernel.." --icon=dialog-information
|
/usr/local/sbin/notify_all "Kernel update tracker" "Removing the Manjaro distribution kernel.." --icon=dialog-information
|
||||||
pacman -R --noconfirm linux
|
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
|
fi
|
||||||
}
|
}
|
||||||
## Uncomment this function only if you really know what you are doing!!
|
## 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!
|
## It removes the Arch / Manjaro distribution kernel, and should only be done if you know how to recover from chroot!
|
||||||
# remove_distr_kernel
|
# 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
|
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
|
||||||
/usr/local/sbin/notify_all "Kernel update tracker" "New kernel installed\!" --icon=dialog-information
|
/usr/local/sbin/notify_all "Kernel update tracker" "New kernel installed\!" --icon=dialog-information
|
||||||
elif [[ "$latest" == "$current" ]] && [[ ! -z $latest ]]
|
elif [[ "$latest" == "$current" ]] && [[ ! -z $latest ]]
|
||||||
|
Reference in New Issue
Block a user