Skip to content
Permalink
Browse files

Correct path of foreground virtual console

/dev/console is not the same as /dev/tty0. Was not aware of that a couple of
years ago when I wrote physlock.

Fixes issue #56.
  • Loading branch information...
muennich committed Sep 18, 2017
1 parent fe66e5a commit 4f131cc2c8c05279886464d3093dd56b1331e98d
Showing with 2 additions and 3 deletions.
  1. +1 −1 Makefile
  2. +1 −2 config.def.h
@@ -1,4 +1,4 @@
VERSION := git-20170908
VERSION := git-20170918

all: physlock

@@ -1,6 +1,5 @@
/* pseudo device that points to foreground console: */
/* (typically "/dev/console" or "/dev/tty0") */
static const char * const CONSOLE_DEVICE = "/dev/console";
static const char * const CONSOLE_DEVICE = "/dev/tty0";

/* common basename of all virtual console devices: */
static const char * const TTY_DEVICE_BASE = "/dev/tty";

0 comments on commit 4f131cc

Please sign in to comment.
You can’t perform that action at this time.