summaryrefslogtreecommitdiffstats
path: root/sys/dev/vt/vt_consolectl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/vt/vt_consolectl.c')
-rw-r--r--sys/dev/vt/vt_consolectl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/vt/vt_consolectl.c b/sys/dev/vt/vt_consolectl.c
index df8b341..32e3ba6 100644
--- a/sys/dev/vt/vt_consolectl.c
+++ b/sys/dev/vt/vt_consolectl.c
@@ -73,6 +73,8 @@ static void
consolectl_drvinit(void *unused)
{
+ if (!vty_enabled(VTY_VT))
+ return;
make_dev(&consolectl_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
"consolectl");
}
OpenPOWER on IntegriCloud