r1759

dslinux_gpf at dslinux.in-berlin.de dslinux_gpf at dslinux.in-berlin.de
Sun May 13 15:19:39 CEST 2007


Author: gpf
Date: 2007-05-13 15:19:34 +0200 (Sun, 13 May 2007)
New Revision: 1759

Log:
detects extra RAM and starts 2 extra terminals and gpm if it exists


Modified: trunk/vendors/Nintendo/common/rc.common
===================================================================
--- trunk/vendors/Nintendo/common/rc.common	2007-05-11 17:20:00 UTC (rev 1758)
+++ trunk/vendors/Nintendo/common/rc.common	2007-05-13 13:19:34 UTC (rev 1759)
@@ -55,11 +55,21 @@
 # set up /etc/hosts so networking tools will work
 echo "127.0.0.1 $hostname" > /etc/hosts
 
+# if we have a extra RAM then enable gpm and 2 extra terminals
+exec 0</proc/meminfo
+read line
+exec 0</dev/null
+set -- $line
+if [ $2 -gt 4000 ]
+then
+              /usr/bin/agetty -n -l /bin/autologin 38400 tty2 linux &
+              /usr/bin/agetty -n -l /bin/autologin 38400 tty3 linux &
 # if we have a gpm binary, enable the mouse cursor
 if [ -x /usr/bin/gpm ]
 then
 	/usr/bin/gpm -m /dev/mouse0 -t ps2 &
 fi
+fi
 
 # show firmware version if configured
 [ "$show_firmware_version" = "YES" ] && fwver




More information about the dslinux-commit mailing list