Revision: 6197
          http://ipcop.svn.sourceforge.net/ipcop/?rev=6197&view=rev
Author:   owes
Date:     2011-12-27 11:32:48 +0000 (Tue, 27 Dec 2011)
Log Message:
-----------
Readd the serial console that got removed by the 2.0.1 update. Needs a serious 
test before release.

Modified Paths:
--------------
    ipcop/trunk/updates/2.0.3/setup

Modified: ipcop/trunk/updates/2.0.3/setup
===================================================================
--- ipcop/trunk/updates/2.0.3/setup     2011-12-27 10:16:28 UTC (rev 6196)
+++ ipcop/trunk/updates/2.0.3/setup     2011-12-27 11:32:48 UTC (rev 6197)
@@ -81,6 +81,19 @@
     /usr/local/bin/restartntpd
 fi
 
+# Readd serial console, removed by 2.0.1 update
+TMP=`grep "console=" /proc/cmdline`
+if [ "x$TMP" != "x" ]; then
+    TMP=`grep "^7" /etc/inittab`
+    if [ "x$TMP" == "x" ]; then
+        # Pull needed information from /proc/cmdline
+        CONSOLE=`cat /proc/cmdline | sed 's/.*console=\([^ ]*\).*/\1/'`
+        TTY=`echo $CONSOLE | cut -d ',' -f 1`
+        BAUDRATE=`echo $CONSOLE | sed 's/.*,\([0-9]*\).*/\1/'`
+        echo "7:2345:respawn:/sbin/agetty -I '\033(K' $TTY $BAUDRATE vt102" >> 
/etc/inittab
+    fi
+fi
+
 #####
 #
 # End of version specific handling. Continue with universal stuff.

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


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to