Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Daniel Goller (c96f8ed433e16783c099afef15d69d0235233cc2)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Daniel Goller <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Daniel Goller (c96f8ed433e16783c099afef15d69d0235233cc2)
  • Date: Wed, 4 Oct 2006 20:34:12 -0500

GIT changes to master grimoire by Daniel Goller <morfic AT sourcemage.org>:

FUNCTIONS | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit c96f8ed433e16783c099afef15d69d0235233cc2
Author: Daniel Goller <morfic AT sourcemage.org>
Commit: Daniel Goller <morfic AT sourcemage.org>

grimoire/FUNCTIONS: add part to ifelseheimer to get version from
/usr/src/linux/.config
so we can go and compile all modules for the new kernel before we
reboot
and are this way not stuck w/o network/* and who does not setup
/usr/src/linux is
stuck with uname -r as before

diff --git a/FUNCTIONS b/FUNCTIONS
index 37ef827..f528ab1 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -295,8 +295,13 @@ function get_kernel_version()
if [[ $KVER ]] ; then
echo $KVER
else
- KVER=$(uname -r)
- echo $KVER
+ KVER=$(grep version /usr/src/linux/.config | cut -d:
-f2 | cut -d ' ' -f2)
+ if [ $KVER ] && [ -d "/lib/modules/${KVER}/build" ] ;
then
+ echo $KVER
+ else
+ KVER=$(uname -r)
+ echo $KVER
+ fi
fi
fi
}



  • [SM-Commit] GIT changes to master grimoire by Daniel Goller (c96f8ed433e16783c099afef15d69d0235233cc2), Daniel Goller, 10/04/2006

Archive powered by MHonArc 2.6.24.

Top of Page