r1957
stsp at dslinux.in-berlin.de
stsp at dslinux.in-berlin.de
Fri Oct 5 16:04:24 CEST 2007
Author: stsp
Date: 2007-10-05 16:04:18 +0200 (Fri, 05 Oct 2007)
New Revision: 1957
Log:
Fix indention and make nested if statement more compact.
Modified: trunk/vendors/Nintendo/common/rc.common
===================================================================
--- trunk/vendors/Nintendo/common/rc.common 2007-10-02 19:04:17 UTC (rev 1956)
+++ trunk/vendors/Nintendo/common/rc.common 2007-10-05 14:04:18 UTC (rev 1957)
@@ -59,21 +59,17 @@
# 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
+# if we have a extra RAM, enable 2 extra terminals and gpm
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 &
+ /usr/bin/agetty -n -l /bin/autologin 38400 tty2 linux &
+ /usr/bin/agetty -n -l /bin/autologin 38400 tty3 linux &
+ [ -x /usr/bin/gpm ] && /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