Compare commits

..
3 Commits
Author SHA1 Message Date
Daniele Fucini 0039e8e6aa Check if new kernel has been built 2024-07-26 20:18:07 +02:00
Daniele Fucini 978fe39f79 Fix kernel update detection again 2024-07-14 18:39:42 +02:00
Daniele Fucini 4dc94c48ed Fix kernel update detection 2024-07-13 11:17:53 +02:00
+4 -3
View File
@@ -8,12 +8,13 @@ fi
arch_updates=$(checkupdates | wc -l)
aur_updates=$(aur repo -u -d aur-local | wc -l)
kernel_update=$(checkupdates | grep linux | wc -l)
kernel_update=$(checkupdates | grep linux | grep -v custom | grep -v archlinux | grep -v api | grep -v firmware | wc -l)
built_kernel=$(checkupdates | grep linux-custom | wc -l)
updates=$(($arch_updates + $aur_updates))
if [ "$kernel_update" -ge 1 ]; then
notify-send "Kernel update available" "Rebuild custom kernel to update"
if [ "$kernel_update" -ge 1 ] && [ "$built_kernel" -eq 0 ]; then
notify-send "Kernel update available" "Rebuild custom kernel"
fi
if [ "$updates" -ge "$threshold" ]; then