summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2002-06-18 07:33:56 +0000
committerdougb <dougb@FreeBSD.org>2002-06-18 07:33:56 +0000
commitf54b57d4885c98f03395b425fd8092addebf028d (patch)
tree655affc5592b92b9a2a6ebae9bb9023097f83257 /etc
parent695434d3197d227def9af4d64cddf6b8cb2b7af5 (diff)
downloadFreeBSD-src-f54b57d4885c98f03395b425fd8092addebf028d.zip
FreeBSD-src-f54b57d4885c98f03395b425fd8092addebf028d.tar.gz
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)
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.devfs21
1 files changed, 19 insertions, 2 deletions
diff --git a/etc/rc.devfs b/etc/rc.devfs
index 143ce1c..0bd43f6 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
OpenPOWER on IntegriCloud