From 175c38cf602c0ef7f663ffd6fda8d36adbe94b35 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 22 Oct 2000 19:10:13 +0000 Subject: [PATCH] On DEVFS machines, the device name database is no use. --- etc/rc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/rc b/etc/rc index 1c16f05bf350..51dbc5618ff1 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