DLDI patch for RAM/no RAM
Troy Davis
gpf at dslinux.in-berlin.de
Sun May 6 08:32:06 CEST 2007
Quoting gpf at dslinux.in-berlin.de:
> 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
>
More information about the dslinux-devel
mailing list