DLDI patch for RAM/no RAM
gpf at dslinux.in-berlin.de
gpf at dslinux.in-berlin.de
Sun May 6 08:20:38 CEST 2007
ok third time is the charm hopefully :)
discovered in the last patch the extra terminals are created but they do not
have the terminal type set so you have to export the term type, this patch set
them so its set at creation time.
Index: vendors/Nintendo/common/rc.common
===================================================================
--- vendors/Nintendo/common/rc.common (revision 1751)
+++ vendors/Nintendo/common/rc.common (working copy)
@@ -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
Thanks,
Troy(GPF)
http://gpf.dcemu.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RAM.diff.gz
Type: application/x-gzip
Size: 442 bytes
Desc: not available
Url : http://mailman.dslinux.in-berlin.de/pipermail/dslinux-devel-dslinux.in-berlin.de/attachments/20070506/271ebe08/attachment.bin
More information about the dslinux-devel
mailing list