summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorErik Andersen2000-02-09 04:16:43 +0000
committerErik Andersen2000-02-09 04:16:43 +0000
commite132f4b09e5c9aedaef97f65279e8702633fd425 (patch)
tree50bfe1c027ff760e426ae31442da73e536dd4baa /utility.c
parente49d5ecbbe51718fa925b6890a735e5937cc2aa2 (diff)
downloadbusybox-e132f4b09e5c9aedaef97f65279e8702633fd425.zip
busybox-e132f4b09e5c9aedaef97f65279e8702633fd425.tar.gz
Fixed the init problem where it wouldn't unmount filesystems
on reboot. Also fixed swapoff -a so it works. -Erik
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/utility.c b/utility.c
index 7f46f9b..00a1c69 100644
--- a/utility.c
+++ b/utility.c
@@ -1298,5 +1298,19 @@ extern char *find_unused_loop_device(void)
}
#endif /* BB_FEATURE_MOUNT_LOOP */
+#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
+
+
/* END CODE */