Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] [PATCH 02/16] FUNCTIONS: Remove duplicated code

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Ismael Luceno <ismael.luceno AT gmail.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] [PATCH 02/16] FUNCTIONS: Remove duplicated code
  • Date: Sun, 11 Apr 2010 20:50:14 -0300

---
ChangeLog | 1 +
FUNCTIONS | 25 -------------------------
2 files changed, 1 insertions(+), 25 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a0107fa..bd62f01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2010-04-11 Ismael Luceno <ismael AT sourcemage.org>
* FUNCTIONS: Improved get_running_kernel_config() and make it use the
more standard /lib/modules path to get the kernel config.
+ * FUNCTIONS: Remove duplicated code

2010-04-10 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libs/libmpc: arithmetic of complex numbers; needed for gcc 4.5
diff --git a/FUNCTIONS b/FUNCTIONS
index ac14c67..54c6be3 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -597,31 +597,6 @@ function get_sorcery_kernel_version()
}

#-----------------------------------------------------------------------
-## Print the kernel config status of the running kernel for the option
-## defined in $1.
-## If a configure file is found print the requested config status (if
-## any) and return 0, otherwise return 1.
-#-----------------------------------------------------------------------
-function get_running_kernel_config()
-{
- if [[ -f /proc/config.gz ]]
- then
- zgrep "^$1=" /proc/config.gz | cut -d= -f2
- else
- local KVER="$(get_running_kernel_version)"
- if [[ -f "/boot/config-$KVER" ]]
- then
- grep "^$1=" "/boot/config-$KVER" | cut -d= -f2
- elif [[ -f "/usr/src/linux-$KVER/.config" ]]
- then
- grep "^$1=" "/usr/src/linux-$KVER/.config" | cut -d= -f2
- else
- return 1
- fi
- fi
-}
-
-#-----------------------------------------------------------------------
## Print the kernel config status of the installed linux spell for the
## option defined in $1.
## If the linux spell is installed and a configure file is found print
--
1.7.0.4





Archive powered by MHonArc 2.6.24.

Top of Page