Home » Kernel » SCRIPT » Checking if at least a Kernel Version is Runnig in Bash Hasan Basri 2:31 PM 0 comments Kernel SCRIPT Checking if at least a Kernel Version is Runnig in Bash kernelatleast() { # provide number like 2639kver=$(uname -r|cut -d\- -f1|tr -d '.'| tr -d '[A-Z][a-z]')kver=${kver:0:4}if [ $1 -ge $kver ] ; thenreturn 0;elsereturn 1;fi} Share: Facebook Twitter Google+ StumbleUpon Digg Delicious LinkedIn Reddit Technorati
0 comments:
Post a Comment