sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
[SM-Discuss] [PATCH 02/16] FUNCTIONS: Remove duplicated code
- 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
-
[SM-Discuss] Kernel build path,
Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 01/16] FUNCTIONS: Improved get_running_kernel_config(), Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 02/16] FUNCTIONS: Remove duplicated code, Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 03/16] FUNCTIONS: make get_running_kernel_config() get kernel version from get_running_kernel_version(), Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 04/16] FUNCTIONS: Improve code reuse for get_*_kernel_config(), Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 05/16] bridge-utils: Fix kernel headers path, Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 06/16] klibc: Fix kernel headers path, Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 07/16] virtualbox-module: Fix kernel headers path, Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 08/16] splashutils: Fix kernel headers path, Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 09/16] ndiswrapper: Fix kernel headers path, Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 10/16] madwifi: Fix kernel headers path, Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 11/16] cloop: Fix kernel headers path, Ismael Luceno, 04/11/2010
- [SM-Discuss] [PATCH 12/16] dazuko: Fix kernel headers path, Ismael Luceno, 04/11/2010
Archive powered by MHonArc 2.6.24.