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 /sys | |
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 'sys')
-rw-r--r-- | sys/dev/syscons/syscons.c | 4 | ||||
-rw-r--r-- | sys/i386/isa/syscons.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index d99ed3b..ebc243f 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.275 1998/08/18 07:36:47 sos Exp $ + * $Id: syscons.c,v 1.276 1998/08/23 08:26:41 bde Exp $ */ #include "sc.h" @@ -138,7 +138,6 @@ static scr_stat main_console; static scr_stat *console[MAXCONS]; #ifdef DEVFS static void *sc_devfs_token[MAXCONS]; -static void *sc_vga_devfs_token; static void *sc_mouse_devfs_token; static void *sc_console_devfs_token; #endif @@ -842,7 +841,6 @@ scattach(struct isa_device *dev) for (vc = 0; vc < MAXCONS; vc++) sc_devfs_token[vc] = devfs_add_devswf(&sc_cdevsw, vc, DV_CHR, UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc); - sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga"); sc_mouse_devfs_token = devfs_add_devswf(&sc_cdevsw, SC_MOUSE, DV_CHR, UID_ROOT, GID_WHEEL, 0600, "sysmouse"); sc_console_devfs_token = devfs_add_devswf(&sc_cdevsw, SC_CONSOLE, DV_CHR, diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c index d99ed3b..ebc243f 100644 --- a/sys/i386/isa/syscons.c +++ b/sys/i386/isa/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.275 1998/08/18 07:36:47 sos Exp $ + * $Id: syscons.c,v 1.276 1998/08/23 08:26:41 bde Exp $ */ #include "sc.h" @@ -138,7 +138,6 @@ static scr_stat main_console; static scr_stat *console[MAXCONS]; #ifdef DEVFS static void *sc_devfs_token[MAXCONS]; -static void *sc_vga_devfs_token; static void *sc_mouse_devfs_token; static void *sc_console_devfs_token; #endif @@ -842,7 +841,6 @@ scattach(struct isa_device *dev) for (vc = 0; vc < MAXCONS; vc++) sc_devfs_token[vc] = devfs_add_devswf(&sc_cdevsw, vc, DV_CHR, UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc); - sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga"); sc_mouse_devfs_token = devfs_add_devswf(&sc_cdevsw, SC_MOUSE, DV_CHR, UID_ROOT, GID_WHEEL, 0600, "sysmouse"); sc_console_devfs_token = devfs_add_devswf(&sc_cdevsw, SC_CONSOLE, DV_CHR, |