aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/fstabinfo.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/rc/fstabinfo.c b/src/rc/fstabinfo.c
index 475212a3..99eb7bc0 100644
--- a/src/rc/fstabinfo.c
+++ b/src/rc/fstabinfo.c
@@ -298,15 +298,8 @@ fstabinfo(int argc, char **argv)
continue;
}
- /* No point in outputting if quiet */
- if (rc_yesno(getenv("EINFO_QUIET")))
- continue;
-
+ /* mount or remount? */
switch (output) {
- case OUTPUT_BLOCKDEV:
- printf("%s\n", ENT_BLOCKDEVICE(ent));
- break;
-
case OUTPUT_MOUNT:
result += do_mount(ent, false);
break;
@@ -314,6 +307,16 @@ fstabinfo(int argc, char **argv)
case OUTPUT_REMOUNT:
result += do_mount(ent, true);
break;
+ }
+
+ /* No point in outputting if quiet */
+ if (rc_yesno(getenv("EINFO_QUIET")))
+ continue;
+
+ switch (output) {
+ case OUTPUT_BLOCKDEV:
+ printf("%s\n", ENT_BLOCKDEVICE(ent));
+ break;
case OUTPUT_MOUNTARGS:
printf("-o %s -t %s %s %s\n",