char *tmp = NULL;
if (argc != 2)
- bb_show_usage();
+ bb_show_usage();
if (!strncmp(argv[1], "LABEL=", 6))
tmp = get_devname_from_label(argv[1] + 6);
tmp = get_devname_from_uuid(argv[1] + 5);
else if (!strncmp(argv[1], "/dev/", 5)) {
/* Just pass a device name right through. This might aid in some scripts
- being able to call this unconditionally */
+ being able to call this unconditionally */
tmp = argv[1];
} else
bb_show_usage();
-
- if (tmp) {
- puts(tmp);
+
+ if (tmp) {
+ puts(tmp);
return 0;
}
return 1;
-}
+}
#define verbose_mount(...) mount(__VA_ARGS__)
#endif
+#if ENABLE_FEATURE_MOUNT_LABEL
static int resolve_mount_spec(char **fsname)
{
char *tmp = NULL;
}
return 0;
}
+#endif
/* Append mount options to string */
static void append_mount_options(char **oldopts, const char *newopts)