[d-kernel] kernelversion_code v0.2
Konstantin A. Lepikhov
lakostis на anti-leasure.ru
Вс Май 22 17:40:14 MSD 2005
Hi!
вторая версия.
#!/bin/sh
# Small script to get the kernel version code
# Made by LAKostis for ALTLinux kernel-build-tools package.
release="$1"
[ ! $release ] && release=`uname -r`
kver=`echo $release|cut -d- -f1`
version=`echo $kver|cut -d. -f1`
patchlevel=`echo $kver|cut -d. -f2`
sublevel=`echo $kver|cut -d. -f3`
# from kernel Makefile
echo `expr $version \\* 65536 + $patchlevel \\* 256 + $sublevel`
--
WBR, Konstantin chat with ==>ICQ: 109916175
Lepikhov, speak to ==>JID: lakostis на jabber.org
aka L.A. Kostis write to ==>mailto:lakostis на pisem.net.nospam
...The information is like the bank... (c) EC8OR
Подробная информация о списке рассылки devel-kernel