Module Name:    src
Committed By:   martin
Date:           Sat Mar 13 14:05:39 UTC 2010

Modified Files:
        src/distrib/sparc64/instfs: dot.profile

Log Message:
Simplify the console type check by passing -nx to sysctl. Pointed out
by Alan Barrett.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/distrib/sparc64/instfs/dot.profile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sparc64/instfs/dot.profile
diff -u src/distrib/sparc64/instfs/dot.profile:1.4 src/distrib/sparc64/instfs/dot.profile:1.5
--- src/distrib/sparc64/instfs/dot.profile:1.4	Fri Mar 12 21:36:52 2010
+++ src/distrib/sparc64/instfs/dot.profile	Sat Mar 13 14:05:39 2010
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.4 2010/03/12 21:36:52 martin Exp $
+# $NetBSD: dot.profile,v 1.5 2010/03/13 14:05:39 martin Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -40,8 +40,8 @@
 # the terminal type accordingly.
 # There is no /var/db/dev.db, so sysctl might not map the devicename properly;
 # ttyE0 is 90,0 -> 0x5a00
-case $(sysctl kern.consdev 2>/dev/null) in
- kern.consdev\ =\ ttyE*|kern.consdev\ =\ 0x5a0*)
+case $(sysctl -nx kern.consdev) in
+ 0000000000005a0*)
    TERM=wsvt25
    ;;
  *)

Reply via email to