diff options
author | sos <sos@FreeBSD.org> | 1998-09-14 09:14:46 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1998-09-14 09:14:46 +0000 |
commit | b3bc5d421a177e87ccfd1041360612d8dd928870 (patch) | |
tree | 9d439ed7a2ab409dbb7552e402b0676404298187 /etc | |
parent | 7faa559f34d8e1b2991d11274edcbe0bf3458336 (diff) | |
download | FreeBSD-src-b3bc5d421a177e87ccfd1041360612d8dd928870.zip FreeBSD-src-b3bc5d421a177e87ccfd1041360612d8dd928870.tar.gz |
Make /dev/vga a softlink to /dev/ttyv0 under DEVFS using /etc/rc.devfs
Remove the hack from syscons that added a /dev/vga node in DEVFS
it broke root acces on ttyv0 because dev_mkdb screwed up.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 5 | ||||
-rw-r--r-- | etc/rc.devfs | 14 |
2 files changed, 18 insertions, 1 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.153 1998/09/07 17:18:36 cracauer Exp $ +# $Id: rc,v 1.154 1998/09/09 22:27:21 jraynard Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -338,6 +338,9 @@ if [ "X${local_startup}" != X"NO" ]; then echo . fi +# Run rc.devfs if present to customify devfs +[ -f /etc/rc.devfs ] && sh /etc/rc.devfs + # Do traditional (but rather obsolete) rc.local file if it exists. [ -f /etc/rc.local ] && sh /etc/rc.local diff --git a/etc/rc.devfs b/etc/rc.devfs new file mode 100644 index 0000000..d0d5279 --- /dev/null +++ b/etc/rc.devfs @@ -0,0 +1,14 @@ +# +# $Id$ +# +# If there is a global system configuration file, suck it in. +if [ -f /etc/rc.conf ]; then + . /etc/rc.conf +fi + +# Setup DEVFS, ie permisisons, links etc. + +echo -n 'Setting up DEVFS: ' +ln -fs ttyv0 vga + +echo '.' |