diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-09 20:42:49 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-09 20:42:49 +0000 |
commit | 45901e280b6a515926de738e0c3da723b43fbb29 (patch) | |
tree | 8c41790703f2ce96df6a1018d264d586939673a9 /sys/kern/tty_cons.c | |
parent | 167b9720889f9aa137ec017b0783e0aa55791ca8 (diff) | |
download | src-45901e280b6a515926de738e0c3da723b43fbb29.tar.gz src-45901e280b6a515926de738e0c3da723b43fbb29.zip |
Notes
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 89bed410fed2..47fffa3f0d22 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) |