From a1aa5c8053ca8c6c14f524b72ee6ef5a673aefe3 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Tue, 18 Jun 2002 07:33:56 +0000 Subject: [PATCH] Should have paid more attention to the PR. Update (improve?) the examples by doing them in /dev/, and provide more than just the one example. Submitted by: bde (for the ideas, blame for mistakes is mine) --- etc/rc.devfs | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/etc/rc.devfs b/etc/rc.devfs index 143ce1c29a81..0bd43f615a6e 100644 --- a/etc/rc.devfs +++ b/etc/rc.devfs @@ -36,6 +36,23 @@ fi # Setup DEVFS, ie permissions, links etc. # -if [ -c /dev/ttyv0 ]; then - ln -fs /dev/ttyv0 /dev/vga +cd /dev + +# This isn't necessarily a good example, since we probably shouldn't need this. +# However, a lot of X software depends on it. +# +if [ -c ttyv0 ]; then + ln -fs ttyv0 vga fi + +# Commonly used by many ports +# +#if [ -c acd0c ]; then +# ln -fs acd0c cdrom +#fi + +# Allow users to query the smb device +# +#if [ -c smb0 ]; then +# chmod 660 smb0 +#fi