From b3bc5d421a177e87ccfd1041360612d8dd928870 Mon Sep 17 00:00:00 2001 From: sos Date: Mon, 14 Sep 1998 09:14:46 +0000 Subject: 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. --- etc/rc | 5 ++++- etc/rc.devfs | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 etc/rc.devfs (limited to 'etc') diff --git a/etc/rc b/etc/rc index 40f7130..a52a7e4 100644 --- a/etc/rc +++ b/etc/rc @@ -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 '.' -- cgit v1.1