<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><PRE>Index: vendors/Nintendo/common/rc.common
===================================================================
--- vendors/Nintendo/common/rc.common        (revision 1748)
+++ vendors/Nintendo/common/rc.common        (working copy)
@@ -58,8 +58,14 @@
 # if we have a gpm binary, enable the mouse cursor
 if [ -x /usr/bin/gpm ]
 then
+exec 0&lt;/proc/meminfo
+read line
+exec 0&lt;/dev/tty
+set -- $line
+if [ $2 -gt 4000 ]; then
         /usr/bin/gpm -m /dev/mouse0 -t ps2 &amp;
 fi
+fi
 
 # show firmware version if configured
 [ "$show_firmware_version" = "YES" ] &amp;&amp; fwver
</PRE></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>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">http://www.dslinux.org/index.php?showtopic=2018&amp;st=180</A>#</DIV>
<DIV>&nbsp;</DIV>
<DIV>This will if it detects extra RAM, will run gpm if its available</DIV>
<DIV>&nbsp;</DIV>
<DIV>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 ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>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.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I get error</DIV>
<DIV>/dev/tty: cannot open</DIV>
<DIV>&nbsp;</DIV>
<DIV>so don't use the below diff </DIV>
<DIV>&nbsp;</DIV>
<DIV>Index: vendors/Nintendo/DLDI/inittab<BR>===================================================================<BR>--- vendors/Nintendo/DLDI/inittab        (revision 1748)<BR>+++ vendors/Nintendo/DLDI/inittab        (working copy)<BR>@@ -1,2 +1,9 @@<BR> tty1::linux:/usr/bin/agetty -n -l /bin/autologin 38400 tty1<BR>-<BR>+exec 0&lt;/proc/meminfo<BR>+read line<BR>+exec 0&lt;/dev/tty<BR>+set -- $line<BR>+if [ $2 -gt 4000 ]; then<BR>+tty2::linux:/usr/bin/agetty -n -l /bin/autologin 38400 tty2<BR>+tty3::linux:/usr/bin/agetty -n -l /bin/autologin 38400 tty3<BR>+fi</DIV>
<DIV>&nbsp;</DIV>
<DIV>Troy(GPF)</DIV>
<DIV><A href="http://gpf.dcemu.co.uk/" target=_blank rel=nofollow>http://gpf.dcemu.co.uk</A></DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="http://gpf.dcemu.co.uk/links.diff.gz" target=_blank rel=nofollow><U><FONT color=#800080></A></FONT></U>&nbsp;</DIV></DIV><BR></DIV></div></body></html>