]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- split sysctl call into two pieces
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 7 Apr 2003 19:59:48 +0000 (19:59 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 7 Apr 2003 19:59:48 +0000 (19:59 +0000)
svn-id: @1060

rc.d/rc.sysinit

index af06f7e63fa6225092e06a7d7cce2cea2cd29d96..f65aa1340244325f907b2dfbaecadeba0b4a58e8 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # /etc/rc.d/rc.sysinit - run once at boot time
-# $Id: rc.sysinit,v 1.112 2002/12/01 23:59:41 alchemyx Exp $
+# $Id: rc.sysinit,v 1.113 2003/04/07 19:59:48 misiek Exp $
 #
 # Taken in part from Miquel van Smoorenburg's bcheckrc.
 # Changes:     Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
@@ -89,8 +89,9 @@ if [ -e /dev/.devfsd -a -x /sbin/devfsd ]; then
         run_cmd "Starting Device Filesystem Daemon" /sbin/devfsd /dev
 fi
 
-# Configure Linux kernel
-run_cmd "Configuring kernel parameters" /sbin/sysctl -p /etc/sysctl.conf
+# Configure Linux kernel (initial configuration, some required modules still
+# may be missing).
+/sbin/sysctl -p /etc/sysctl.conf > /dev/null 2>&1
 
 # Set the system clock.
 ARC=0
@@ -612,6 +613,9 @@ if [ -f /proc/sys/kernel/panic -a "$PANIC_REBOOT_TIME" -gt "0" ]; then
        if (sysctl -w kernel.panic=$PANIC_REBOOT_TIME >/dev/null 2>&1); then ok; else fail; fi
 fi
 
+# ... and here finish configuring parameters
+run_cmd "Configuring kernel parameters" /sbin/sysctl -p /etc/sysctl.conf
+
 # Clean up /etc.
 rm -f /fastboot /fsckoptions /forcefsck /halt /poweroff
 
This page took 0.029582 seconds and 4 git commands to generate.