Oops. Forgot the usleep.c file.
[oweals/busybox.git] / swaponoff.c
index bc096ea95a045b4f22c1247c7dfff09a6fbc7725..dca40196626a51180fb641c5acba26a06101804a 100644 (file)
@@ -108,7 +108,12 @@ extern int swap_on_off_main(int argc, char **argv)
                while (*++(*argv))
                        switch (**argv) {
                        case 'a':
-                               whine_if_fstab_is_missing();
+                               {
+                                       struct stat statBuf;
+
+                                       if (stat("/etc/fstab", &statBuf) < 0)
+                                               fatalError("/etc/fstab file missing\n");
+                               }
                                do_em_all();
                                break;
                        default: