Added auto check new kernel
This commit is contained in:
parent
f8ebc9b8bb
commit
aa67e02c67
|
@ -0,0 +1,15 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
# Get icon
|
||||||
|
ICON=`pwd`/tux.png
|
||||||
|
# Get installed kernel version
|
||||||
|
CURRENT=`uname -r|cut -d'-' -f 1`
|
||||||
|
# Get last available stable version
|
||||||
|
INFO=`curl -Ls https://www.kernel.org/ | perl -lne 'BEGIN{$/=""} print "$1 $2" if \
|
||||||
|
/latest_link.*?<a.*?href=\"(.*?)\".*?>(.*?)</s'`
|
||||||
|
LASTVERSION=`echo ${INFO} | cut -d' ' -f 2`
|
||||||
|
|
||||||
|
if [ ${CURRENT} != ${LASTVERSION} ] ; then
|
||||||
|
PAT
|
||||||
|
notify-send -i ${ICON} "Kernel update" "Need version available (${LASTVERSION})"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user