https://bugzilla.novell.com/show_bug.cgi?id=466587 User vjsanjay@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466587#c1 --- Comment #1 from Sanjay Kumar J <vjsanjay@gmail.com> 2009-01-15 14:19:07 MST --- vjsanjay@sbvn:~> more /bin/uname #!/bin/bash OUTPUT=`uname.bin $*` if test -f /.kernelversion ; then MREL=`cat /.kernelversion` fi if test -z "$MREL" -a -L /usr/src/linux -a -d /usr/src/linux ; then MREL=$( shopt -s nullglob; set -- /lib/modules/*-default /lib/modules/* ; basename $1 ) fi if test -z "$MREL" -a -f /usr/src/linux/Makefile ; then MREL=`grep "^VERSION = " /usr/src/linux/Makefile 2> /dev/null | sed -e "s/VERSION = //"` MREL=$MREL.`grep "^PATCHLEVEL = " /usr/src/linux/Makefile 2> /dev/null | sed -e "s/PATCHLEVEL = //"` MREL=$MREL.`grep "^SUBLEVEL = " /usr/src/linux/Makefile 2> /dev/null | sed -e "s/SUBLEVEL = //"` fi if test -z "$MREL" ; then MREL=`grep UTS /usr/include/linux/version.h 2> /dev/null | sed -ne "s/.*\"\(.*\)\".*/\1/p;q"` fi if test -n "$MREL" ; then echo $OUTPUT | sed -e "s/[0-9]\.[0-9]\.[0-9][-.0-9a-zA-Z_]*/$MREL/" else echo $OUTPUT fi vjsanjay@sbvn:~> vjsanjay@sbvn:~> bash -x /bin/uname -a ++ uname.bin -a + OUTPUT='Linux sbvn 2.6.29-rc1-9-default #1 SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux' + test -f /.kernelversion + test -z '' -a -L /usr/src/linux -a -d /usr/src/linux ++ shopt -s nullglob ++ set -- /lib/modules/2.6.27.7-9-default /lib/modules/2.6.29-rc1-9-default /lib/modules/2.6.27.7-9-debug /lib/modules/2.6.27.7-9-default /lib/modules/2.6.27.7-9-trace /lib/modules/2.6.27.7-9-xen /lib/modules/2.6.29-rc1-9-default ++ basename /lib/modules/2.6.27.7-9-default + MREL=2.6.27.7-9-default + test -z 2.6.27.7-9-default -a -f /usr/src/linux/Makefile + test -z 2.6.27.7-9-default + test -n 2.6.27.7-9-default + echo Linux sbvn 2.6.29-rc1-9-default '#1' SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux + sed -e 's/[0-9]\.[0-9]\.[0-9][-.0-9a-zA-Z_]*/2.6.27.7-9-default/' Linux sbvn 2.6.27.7-9-default #1 SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux vjsanjay@sbvn:~> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.