[SM-Discuss] [PATCH 03/16] FUNCTIONS: make get_running_kernel_config() get kernel version from get_running_kernel_version()
Ismael Luceno
ismael.luceno at gmail.com
Sun Apr 11 19:50:15 EDT 2010
---
FUNCTIONS | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/FUNCTIONS b/FUNCTIONS
index 54c6be3..e4cb040 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -375,15 +375,7 @@ function devoke_uname_change()
#-----------------------------------------------------------------------
function get_running_kernel_config()
{
- local KVER
- # use proc interface because even inside a uname change invoke this
- # still returns the version of the running kernel
- if [ -f /proc/sys/kernel/osrelease ] ; then
- KVER=$(cat /proc/sys/kernel/osrelease)
- else
- # apparently you don't have proc mount
- KVER=$(uname -r)
- fi
+ local KVER=$(get_running_kernel_version)
for i in /proc/config /boot/config-$KVER /lib/modules/$KVER/build/.config
do
--
1.7.0.4
More information about the SM-Discuss
mailing list