Revision: 6397
          http://ipcop.svn.sourceforge.net/ipcop/?rev=6397&view=rev
Author:   owes
Date:     2012-02-21 18:31:07 +0000 (Tue, 21 Feb 2012)
Log Message:
-----------
Add rootdelay option, similar as is available on several linux distros. Need to 
figure out an easy way to modify this in already installed initramfs.

Modified Paths:
--------------
    ipcop/trunk/config/install/init

Modified: ipcop/trunk/config/install/init
===================================================================
--- ipcop/trunk/config/install/init     2012-02-21 18:26:02 UTC (rev 6396)
+++ ipcop/trunk/config/install/init     2012-02-21 18:31:07 UTC (rev 6397)
@@ -6,7 +6,7 @@
 #
 # IPCop is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
 #
 # IPCop is distributed in the hope that it will be useful,
@@ -15,10 +15,9 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with IPCop; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+# along with IPCop.  If not, see <http://www.gnu.org/licenses/>.
 #
-# Copyright (C) 2007-2008, the IPCop team.
+# Copyright (C) 2007-2012, the IPCop team.
 #
 #
 # $Id$
@@ -44,6 +43,9 @@
 # The default init.  Can be overwritten by passing init=<something> to the 
kernel
 INIT=/sbin/init
 
+# Other variables
+ROOTDELAY=
+
 test_ok()
 {
        if [ $? -eq 0 ]; then
@@ -251,6 +253,9 @@
                init=*)
                        INIT=${i#init=}
                        ;;
+               rootdelay=*)
+                       ROOTDELAY="${x#rootdelay=}"
+                       ;;
                nodma)
                        # 1 parameter to easily disable dma for hda, hdb, hdc, 
hdd
                        IDE_CORE_OPTS="${IDE_CORE_OPTS} nodma=0.0 nodma=0.1 
nodma=1.0 nodma=1.1"
@@ -334,6 +339,13 @@
 # Modify /etc/inittab to use configured (or default) TTY
 sed -i -e "s,CURRENT_TTY,${CURRENT_TTY},g" /etc/inittab
 
+# Wait if rootdelay is set
+if [ "$ROOTDELAY" ]; then
+       echo -ne "Delay ${ROOTDELAY} ... "
+       sleep $ROOTDELAY
+       test_ok
+fi
+
 case ${MODE} in
        normal)
                start_normal_mode

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to