aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2003-05-02 08:10:58 +0000
committerMike Makonnen <mtm@FreeBSD.org>2003-05-02 08:10:58 +0000
commit994336cdd96c8e9d04b6e9c824bff882fdf8e089 (patch)
tree84b88d1d2af3d1f59d8cb5b272f67d346e2e50cd /etc
parent560bb4f8b6d099fc24ece8e55c894c0e6c4684a1 (diff)
downloadsrc-994336cdd96c8e9d04b6e9c824bff882fdf8e089.tar.gz
src-994336cdd96c8e9d04b6e9c824bff882fdf8e089.zip
Create a symbolic link /dev/vga -> /dev/ttyv0.
We can't remove the sourcing of /etc/rc.devfs yet in case the user might have custom entries in it. We will have to come up with an /etc/devfs.rules or something to make this kind of thing easier. Approved by: markm (mentor)(implicit)
Notes
Notes: svn path=/head/; revision=114516
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/devfs7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.d/devfs b/etc/rc.d/devfs
index e8fae941d1b1..313a294d50f1 100644
--- a/etc/rc.d/devfs
+++ b/etc/rc.d/devfs
@@ -15,6 +15,13 @@ load_rc_config $name
# Setup DEVFS, ie permissions, links etc.
#
+if [ -c /dev/ttyv0 -a ! -e /dev/vga ];then
+ ln -fs /dev/ttyv0 /dev/vga
+fi
+
+# XXX - in case the user has a customized /etc/rc.devfs we need to keep
+# pulling it in until we have a better way of doing this in rc.d.
+#
if [ -r /etc/rc.devfs ]; then
sh /etc/rc.devfs
fi