summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-10-22 19:10:13 +0000
committerphk <phk@FreeBSD.org>2000-10-22 19:10:13 +0000
commit8ce58b4dcf45081102669fa7baea097e4fa5d77e (patch)
tree2d15e5e9f54242b2e78b8bb1e3b32b152e939d84 /etc
parentfba698949b56b642423c350ac9c0e39f6a35d9b9 (diff)
downloadFreeBSD-src-8ce58b4dcf45081102669fa7baea097e4fa5d77e.zip
FreeBSD-src-8ce58b4dcf45081102669fa7baea097e4fa5d77e.tar.gz
On DEVFS machines, the device name database is no use.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 1c16f05..51dbc56 100644
--- a/etc/rc
+++ b/etc/rc
@@ -376,9 +376,13 @@ esac
echo '.'
-# Build devices database
+# Build device name databases if we are not using DEVFS
#
-dev_mkdb
+if sysctl vfs.devfs.generation > /dev/null 2>&1 ; then
+ rm /var/run/dev.db
+else
+ dev_mkdb
+fi
# Enable dumpdev so that savecore can see it.
# /var/crash should be a directory or a symbolic link
OpenPOWER on IntegriCloud