Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sparc64/instfs Simplify the console type check by pa...
details: https://anonhg.NetBSD.org/src/rev/52a0bfb5cfab
branches: trunk
changeset: 752970:52a0bfb5cfab
user: martin <martin%NetBSD.org@localhost>
date: Sat Mar 13 14:05:39 2010 +0000
description:
Simplify the console type check by passing -nx to sysctl. Pointed out
by Alan Barrett.
diffstat:
distrib/sparc64/instfs/dot.profile | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 319efce06532 -r 52a0bfb5cfab distrib/sparc64/instfs/dot.profile
--- a/distrib/sparc64/instfs/dot.profile Sat Mar 13 13:45:05 2010 +0000
+++ b/distrib/sparc64/instfs/dot.profile Sat Mar 13 14:05:39 2010 +0000
@@ -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
;;
*)
Home |
Main Index |
Thread Index |
Old Index