summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-01-27 04:42:17 +0000
committerjake <jake@FreeBSD.org>2003-01-27 04:42:17 +0000
commita658a1d50873bfc0f02034889e3d0c50a8055911 (patch)
tree0462754d272e7fb19097d3f519dfc0f30bfcee72 /sys/dev/ofw
parentcf3eae441319bcd9a0b2f9731a1ef429a2b09365 (diff)
downloadFreeBSD-src-a658a1d50873bfc0f02034889e3d0c50a8055911.zip
FreeBSD-src-a658a1d50873bfc0f02034889e3d0c50a8055911.tar.gz
Change ofwcons to use the output-device property from the firmware for the
name of the device that it creates. Update /etc/ttys accordingly. An alias is created for the old name so that old /etc/ttys will continue to work, but due to aliases being implemented as symlinks in devfs you cannot login as root when using the alias device. Discussed with: grehan
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofw_console.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c
index aebc109..27f8766 100644
--- a/sys/dev/ofw/ofw_console.c
+++ b/sys/dev/ofw/ofw_console.c
@@ -93,8 +93,9 @@ cn_drvinit(void *unused)
OF_getprop(options, "output-device", output,
sizeof(output)) == -1)
return;
- make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "ofwcons");
- make_dev_alias(ofw_consdev.cn_dev, "%s", output);
+ make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "%s",
+ output);
+ make_dev_alias(ofw_consdev.cn_dev, "ofwcons");
}
}
OpenPOWER on IntegriCloud