Browse Source

Resurrect the detection of the console device that got lost a long time ago.

OK tb
OPENBSD_6_1
rpe 8 years ago
parent
commit
f4cb393ab1
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/etc/ksh.kshrc

+ 4
- 1
src/etc/ksh.kshrc View File

@ -1,5 +1,5 @@
:
# $OpenBSD: ksh.kshrc,v 1.20 2015/02/18 08:39:32 rpe Exp $
# $OpenBSD: ksh.kshrc,v 1.21 2016/09/09 16:11:12 rpe Exp $
#
# NAME:
# ksh.kshrc - global initialization for ksh
@ -53,6 +53,9 @@ case "$-" in
tty=`tty`
tty=`basename $tty`
TTY=${TTY:-$tty}
# $console is the system console device
console=$(sysctl machdep.console_device)
console=${console#*=}
set -o emacs


Loading…
Cancel
Save