diff options
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 0229c56..1a2644b 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -43,7 +43,6 @@ */ #include "opt_init_path.h" -#include "opt_devfs.h" #include <sys/param.h> #include <sys/file.h> @@ -62,6 +61,7 @@ #include <sys/vmmeter.h> #include <sys/unistd.h> #include <sys/malloc.h> +#include <sys/conf.h> #include <machine/cpu.h> @@ -499,10 +499,11 @@ start_init(void *dummy) (void)subyte(--ucp, 'C'); options = 1; #endif -#ifdef DEVFS - (void)subyte(--ucp, 'd'); - options = 1; -#endif + if (devfs_present) { + (void)subyte(--ucp, 'd'); + options = 1; + } + if (options == 0) (void)subyte(--ucp, '-'); (void)subyte(--ucp, '-'); /* leading hyphen */ |