Oops, that didnt work
This commit is contained in:
@@ -34,7 +34,7 @@ precmd_kernel_info() {
|
|||||||
if [[ ${OS_ID} == "arch" ]] || [[ ${OS_ID_LIKE} == "arch" ]]; then
|
if [[ ${OS_ID} == "arch" ]] || [[ ${OS_ID_LIKE} == "arch" ]]; then
|
||||||
# Arch Linux removes the old kernel when updating, so we can
|
# Arch Linux removes the old kernel when updating, so we can
|
||||||
# just check to see if /usr/lib/modules/$(uname -r)/vmlinuz exists
|
# just check to see if /usr/lib/modules/$(uname -r)/vmlinuz exists
|
||||||
if [[ -f /usr/lib/modules/$(uname -r)/vmlinuz ]]; then
|
if ! [[ -f /usr/lib/modules/$(uname -r)/vmlinuz ]]; then
|
||||||
# kernel update available
|
# kernel update available
|
||||||
kernel_info_msg_0_="%F{red} reboot required %f"
|
kernel_info_msg_0_="%F{red} reboot required %f"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user