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}
Checking if at least a Kernel Version is Runnig in Bash
Related Posts : kernel,
script
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
I appreciate comments. Feel free to write anything you wish. Selected comments and questions will be published.