This is a short script to send a Gotify update when bkw777/mainline checks and finds a new kernel update. While a GUI notification is an option, I am using mainline on a headless machine I only access via SSH, so this automates the process of logging in to check with the mainline --check
command each time. The only variables need to be set are your Gotify server address and app token. I have the script set in my crontab to check and notify upon a new kernel every 24 hours.
rmlanghopto/mainline-update-gotify
Send a notification via Gotify whenever a new mainline kernel update is released for Ubuntu
Shell