summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorErik Andersen2000-01-05 09:34:26 +0000
committerErik Andersen2000-01-05 09:34:26 +0000
commit0881de706e479877ef68e0b859eb0d2594695e8e (patch)
treebbcfa2be61153f85bfa219e70785ccbe890f4b6e /util-linux/mount.c
parentf4a99cc02cabd7f2607e21b6b52b1eeba723a3fd (diff)
downloadbusybox-0881de706e479877ef68e0b859eb0d2594695e8e.zip
busybox-0881de706e479877ef68e0b859eb0d2594695e8e.tar.gz
The latest and greatest. init basically works, though needs
a minor inittab design change to accomodate specifying the device to run each process on. -Erik
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 1ec9cbb..ee6fe15 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -115,6 +115,18 @@ do_mount(char* specialfile, char* dir, char* filesystemtype,
#endif
+#if defined BB_MTAB
+#define whine_if_fstab_is_missing() {}
+#else
+extern void whine_if_fstab_is_missing()
+{
+ struct stat statBuf;
+ if (stat("/etc/fstab", &statBuf) < 0)
+ fprintf(stderr, "/etc/fstab file missing -- install one to name /dev/root.\n\n");
+}
+#endif
+
+
/* Seperate standard mount options from the nonstandard string options */
static void
parse_mount_options ( char *options, unsigned long *flags, char *strflags)