summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc')
-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