Your Linux Self-Help Desk. A selection of mostly Linux related tutorials, howtos, fixes, news and more.
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}
kernelatleast() { # provide number like 2639
kver=$(uname -r|cut -d\- -f1|tr -d '.'| tr -d '[A-Z][a-z]')
kver=${kver:0:4}
if [ $1 -ge $kver ] ; then
return 0;
else
return 1;
fi
}
I appreciate comments. Feel free to write anything you wish. Selected comments and questions will be published.
No comments:
Post a Comment
I appreciate comments. Feel free to write anything you wish. Selected comments and questions will be published.