summaryrefslogtreecommitdiffstats
path: root/sbin/mount/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r--sbin/mount/mount.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index f0daa55..4fccd91 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -140,7 +140,7 @@ main(argc, argv)
options = NULL;
vfslist = NULL;
vfstype = "ufs";
- while ((ch = getopt(argc, argv, "adfo:prwt:uv")) != -1)
+ while ((ch = getopt(argc, argv, "adF:fo:prwt:uv")) != -1)
switch (ch) {
case 'a':
all = 1;
@@ -148,6 +148,9 @@ main(argc, argv)
case 'd':
debug = 1;
break;
+ case 'F':
+ setfstab(optarg);
+ break;
case 'f':
init_flags |= MNT_FORCE;
break;
@@ -712,7 +715,7 @@ usage()
(void)fprintf(stderr, "%s\n%s\n%s\n",
"usage: mount [-dfpruvw] [-o options] [-t ufs | external_type] special node",
-" mount [-adfpruvw] [-t ufs | external_type]",
+" mount [-adfpruvw] [ -F fstab] [-t ufs | external_type]",
" mount [-dfpruvw] special | node");
exit(1);
}
OpenPOWER on IntegriCloud