[Lunar-commits] r21618 - lunar/trunk/var/lib/lunar/functions

Auke Kok sofar at lunar-linux.org
Fri Sep 29 14:56:17 UTC 2006


Author: sofar
Date: 2006-09-29 14:56:17 +0000 (Fri, 29 Sep 2006)
New Revision: 21618

Modified:
   lunar/trunk/var/lib/lunar/functions/misc.lunar
Log:
moo


Modified: lunar/trunk/var/lib/lunar/functions/misc.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/misc.lunar	2006-09-29 14:22:25 UTC (rev 21617)
+++ lunar/trunk/var/lib/lunar/functions/misc.lunar	2006-09-29 14:56:17 UTC (rev 21618)
@@ -172,3 +172,13 @@
 {
 	echo $1 | sed 's/.tar.\(bz2\|gz\)$//g'
 }
+
+
+last_kernel()
+{
+	if [ -f /usr/src/linux/include/linux/utsrelease.h ]; then
+		grep UTS_RELEASE /usr/src/linux/include/linux/utsrelease.h | cut -d'"' -f2
+	else
+		grep UTS_RELEASE /usr/src/linux/include/linux/version.h | cut -d'"' -f2
+	fi
+}



More information about the Lunar-commits mailing list