From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 22 May 2005 17:40:14 +0400 From: "Konstantin A. Lepikhov" To: ALT Linux Kernel Devel Mailing List Message-ID: <20050522134014.GA468@lks.home> Mail-Followup-To: ALT Linux Kernel Devel Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operation-System: ALT Linux Sisyphus (20050505) 2.6.11-wks26-up-alt2 User-Agent: Mutt/1.5.8+cvs20050213i X-AV-Checked: ClamAV using ClamSMTP Subject: [d-kernel] kernelversion_code v0.2 X-BeenThere: devel-kernel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2005 13:41:05 -0000 Archived-At: List-Archive: List-Post: 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