diff options
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r-- | sys/kern/tty_cons.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 89bed41..47fffa3 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -175,7 +175,6 @@ cninit(void) * Make the best console the preferred console. */ cnselect(best_cn); - make_dev(&cn_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "console"); } void @@ -587,3 +586,12 @@ cndbctl(int on) if (on) refcount++; } + +static void +cn_drvinit(void *unused) +{ + + make_dev(&cn_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "console"); +} + +SYSINIT(cndev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, cn_drvinit, NULL) |