Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by David Brown (4715c1ec3422928f25523372a6ecea6c496edbb8)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: David Brown <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by David Brown (4715c1ec3422928f25523372a6ecea6c496edbb8)
  • Date: Sun, 18 Nov 2007 00:12:22 -0600

GIT changes to master grimoire by David Brown <dmlb2000 AT gmail.com>:

kernels/module-init-tools/HISTORY | 5 +++++
kernels/module-init-tools/init.d/modutils | 7 ++++++-
kernels/module-init-tools/init.d/modutils.conf | 8 ++++++++
3 files changed, 19 insertions(+), 1 deletion(-)

New commits:
commit 4715c1ec3422928f25523372a6ecea6c496edbb8
Author: David Brown <dmlb2000 AT gmail.com>
Commit: David Brown <dmlb2000 AT gmail.com>

module-init-tools added some extra options I find useful to the init
script

diff --git a/kernels/module-init-tools/HISTORY
b/kernels/module-init-tools/HISTORY
index 59aa5df..184d0dc 100644
--- a/kernels/module-init-tools/HISTORY
+++ b/kernels/module-init-tools/HISTORY
@@ -1,3 +1,8 @@
+2007-11-17 David Brown <dmlb2000 AT gmail.com>
+ * init.d/modutils: added some options that I find useful so others may
+ * init.d/modutils.conf: added for the options I find useful.. default
+ is the current behaviour
+
2007-10-31 Treeve Jelbert <treeve AT pi.be>
* DETAILS: version 3.4
new url, new sig
diff --git a/kernels/module-init-tools/init.d/modutils
b/kernels/module-init-tools/init.d/modutils
index 4e16c62..e7e6dd4 100644
--- a/kernels/module-init-tools/init.d/modutils
+++ b/kernels/module-init-tools/init.d/modutils
@@ -6,6 +6,7 @@ NEEDS="+root_fs"
RECOMMENDED=yes

. /etc/init.d/smgl_init
+. /etc/sysconfig/modutils

test -x /sbin/depmod || exit 5
test -x /sbin/modprobe || exit 5
@@ -20,7 +21,11 @@ esac

# Handle start action

-if [ -x /sbin/depmod ]; then
+if [ -x /sbin/depmod ] && [ "$PERFORM_DEPMOD" = "y" ] ; then
+ if [ "$ENABLE_SWAP_BEFORE_DEPMOD" = "y" ] ; then
+ echo "Enabling swap..."
+ loadproc swapon -a
+ fi
echo "Running depmod..."
loadproc depmod -a
fi
diff --git a/kernels/module-init-tools/init.d/modutils.conf
b/kernels/module-init-tools/init.d/modutils.conf
new file mode 100644
index 0000000..e903eb0
--- /dev/null
+++ b/kernels/module-init-tools/init.d/modutils.conf
@@ -0,0 +1,8 @@
+# Perform depmod -a on boot or not.
+# Probably don't want to do this if you are on a laptop and running on
battery.
+PERFORM_DEPMOD=y
+
+# Sometimes low memory machines and with kernels with lots of modules depmod
+# will cause an Out Of Memory (oom) kernel panic. Say yes here if you want to
+# enable swap so the oom error won't happen.
+#ENABLE_SWAP_BEFORE_DEPMOD=y



  • [SM-Commit] GIT changes to master grimoire by David Brown (4715c1ec3422928f25523372a6ecea6c496edbb8), David Brown, 11/18/2007

Archive powered by MHonArc 2.6.24.

Top of Page