X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Flsb-functions;h=48a460451ce158e8871b3176c18382bc1ae46f5c;hb=e19bf541997e2181ee6cb3a458fa9138ebe9e2a3;hp=7cddf8d4edbccd86ade061a42e209835daf68ae3;hpb=57440c4894e44422cbf6705205205037ce4445ec;p=grml-etc-core.git diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 7cddf8d..48a4604 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -451,29 +451,6 @@ veend() { return ${1:-0} } -# int KV_to_int(string) -# -# Convert a string type kernel version (2.4.0) to an int (132096) -# for easy compairing or versions ... -# -KV_to_int() { - [ -z "$1" ] && return 1 - - local KV_MAJOR="$(KV_major "$1")" - local KV_MINOR="$(KV_minor "$1")" - local KV_MICRO="$(KV_micro "$1")" - local KV_int=$(( KV_MAJOR * 65536 + KV_MINOR * 256 + KV_MICRO )) - - # We make version 2.2.0 the minimum version we will handle as - # a sanity check ... if its less, we fail ... - if [ "${KV_int}" -ge 131584 ] ; then - printf "${KV_int}\n" - return 0 - fi - - return 1 -} - # int get_KV() # # Return the kernel version (major, minor and micro concated) as an integer.