From 0ee74b5b66d79eba411f8fc57545a1140b0bd799 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 29 Sep 1994 22:17:57 +0000 Subject: Formerly main.c.~23~ --- ufs/main.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ufs') diff --git a/ufs/main.c b/ufs/main.c index 5f41265b..65da85bb 100644 --- a/ufs/main.c +++ b/ufs/main.c @@ -23,6 +23,7 @@ #include #include #include +#include char *ufs_version = "0.0 pre-alpha"; @@ -102,10 +103,10 @@ main (int argc, char **argv) mutex_init (&printf_lock); /* XXX */ - task_get_bootstrap_port (mach_task_self (), &bootstrap); - - if (bootstrap) + if (getpid () > 0) { + /* We are in a normal Hurd universe, started as a translator. */ + devname = trans_parse_args (argc, argv); { @@ -120,10 +121,13 @@ main (int argc, char **argv) } else { + /* We are the bootstrap filesystem. */ devname = diskfs_parse_bootargs (argc, argv); compat_mode = COMPAT_GNU; } + task_get_bootstrap_port (mach_task_self (), &bootstrap); + /* Initialize the diskfs library. This must come before any other diskfs call. */ diskfs_init_diskfs (); -- cgit v1.2.3