<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV></DIV>
<DIV>&gt; Thanks to John from the dslinux.org forums for the shell code for this. <A href="http://www.dslinux.org/index.php?showtopic=2018&amp;st=180#" target=_blank>http://www.dslinux.org/index.php?showtopic=2018&amp;st=180#</A><BR><BR>&gt; This will if it detects extra RAM, will run gpm if its available<BR><BR>&gt; Maybe we should set a environment variable if extra RAM is detected so instead of having to run the script each time it could be checked against the environment variable instead ?<BR><BR>&gt; I was trying to do something like this in inittab to make 3 terminals available for RAM users or 1 if extra RAM not detected but doesn't work.<BR><BR>&gt; I get error<BR>&gt; /dev/tty: cannot open<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>Ok figured it out here is a new patch to rc.common ignore previous one.</DIV>
<DIV>It will start gpm and 2 extra terminals if extra RAM is detected.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Index: vendors/Nintendo/common/rc.common<BR>===================================================================<BR>--- vendors/Nintendo/common/rc.common&nbsp;(revision 1751)<BR>+++ vendors/Nintendo/common/rc.common&nbsp;(working copy)<BR>@@ -55,11 +55,21 @@<BR>&nbsp;# set up /etc/hosts so networking tools will work<BR>&nbsp;echo "127.0.0.1 $hostname" &gt; /etc/hosts<BR>&nbsp;<BR>+# if we have a extra RAM then enable gpm and 2 extra terminals<BR>+exec 0&lt;/proc/meminfo<BR>+read line<BR>+exec 0&lt;/dev/null<BR>+set -- $line<BR>+if [ $2 -gt 4000 ]<BR>+then<BR>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/bin/agetty -n -l /bin/autologin 38400 tty2&amp;<BR>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/bin/agetty -n -l /bin/autologin 38400 tty3&amp;<BR>&nbsp;# if we have a gpm binary, enable the mouse cursor<BR>&nbsp;if [ -x /usr/bin/gpm ]<BR>&nbsp;then<BR>&nbsp;&nbsp;/usr/bin/gpm -m /dev/mouse0
 -t ps2 &amp;<BR>&nbsp;fi<BR>+fi<BR>&nbsp;<BR>&nbsp;# show firmware version if configured<BR>&nbsp;[ "$show_firmware_version" = "YES" ] &amp;&amp; fwve</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Troy(GPF)</DIV>
<DIV><A href="http://gpf.dcemu.co.uk">http://gpf.dcemu.co.uk</A><BR><A href="http://gpf.dcemu.co.uk/" target=_blank></A><BR></DIV></div></body></html>