Browse Source

Unbreak ksh.kshrc by using a MI way of finding out the console device name.

Found by landry
OK deraadt
OPENBSD_6_1
rpe 8 years ago
parent
commit
a730e307f5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/ksh.kshrc

+ 2
- 2
src/etc/ksh.kshrc View File

@ -1,5 +1,5 @@
:
# $OpenBSD: ksh.kshrc,v 1.25 2016/09/10 09:44:49 rpe Exp $
# $OpenBSD: ksh.kshrc,v 1.26 2016/09/10 12:50:20 rpe Exp $
#
# NAME:
# ksh.kshrc - global initialization for ksh
@ -53,7 +53,7 @@ case "$-" in
tty=`basename $tty`
TTY=${TTY:-$tty}
# $console is the system console device
console=$(sysctl machdep.console_device)
console=$(sysctl kern.consdev)
console=${console#*=}
set -o emacs


Loading…
Cancel
Save