diff options
author | mtm <mtm@FreeBSD.org> | 2003-05-02 08:10:58 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-05-02 08:10:58 +0000 |
commit | b961f940afb9c90dc1a6fcca97a00c606a03c36b (patch) | |
tree | 84b88d1d2af3d1f59d8cb5b272f67d346e2e50cd /etc/rc.d/devfs | |
parent | baba414b75b66029c8a7ea0b1e96e8573d6a4eb8 (diff) | |
download | FreeBSD-src-b961f940afb9c90dc1a6fcca97a00c606a03c36b.zip FreeBSD-src-b961f940afb9c90dc1a6fcca97a00c606a03c36b.tar.gz |
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)
Diffstat (limited to 'etc/rc.d/devfs')
-rw-r--r-- | etc/rc.d/devfs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.d/devfs b/etc/rc.d/devfs index e8fae94..313a294 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 |