Date: Sun, 16 Jun 2002 22:00:07 -0700 (PDT) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/39381: /dev/vga is created by rc.devfs - even when there is no ttyv0/vga Message-ID: <200206170500.g5H507i25921@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/39381; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> To: Dirk-Willem van Gulik <dirkx@covalent.net> Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: misc/39381: /dev/vga is created by rc.devfs - even when there is no ttyv0/vga Date: Mon, 17 Jun 2002 15:00:57 +1000 (EST) On Sun, 16 Jun 2002, Dirk-Willem van Gulik wrote: > >Description: > At the end of rc.devfs: > > # Setup DEVFS, ie permissions, links etc. > # > ln -fs /dev/ttyv0 /dev/vga > > regardless of the presense of a vga/ttyv. > > >How-To-Repeat: > install according to diskless on a headless machine (e.g. net4501). > >Fix: > Add something along the lines of > > if [ -e /dev/ttyv0 ]; then > ln -fs /dev/ttyv0 /dev/vga > fi This leaves about 10 bugs in the 2 (now 4) devfs-specific lines in this file: - rc files should not create anything unless configured to do so. They especially shouldn't delete correct links unconditionally. (The correct link is created by MAKEDEV; it is vga -> ttyv0, not vga -> /dev/ttyv0.) - /dev/vga is compatibilty cruft for a 1993ish version of X (but I think current X's still use it because of their own compatibility cruft). It is an especially bad example to put in a file with only 1 example. - [... comments about style bugs deleted] Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206170500.g5H507i25921>