aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinit.d/netmount2
-rw-r--r--src/fstabinfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/init.d/netmount b/init.d/netmount
index 2b0af2fe..c0f3e9f8 100755
--- a/init.d/netmount
+++ b/init.d/netmount
@@ -8,7 +8,7 @@ have_nfs() {
local IFS=\n x=
set -- $(fstabinfo --fstype nfs,nfs4)
for x in "$@" ; do
- ! fstabinfo --opts "${x}" | grep -q noauto && return 0
+ ! fstabinfo --options "${x}" | grep -q noauto && return 0
done
return 1
}
diff --git a/src/fstabinfo.c b/src/fstabinfo.c
index eecaf8a0..922a0c9a 100644
--- a/src/fstabinfo.c
+++ b/src/fstabinfo.c
@@ -62,7 +62,7 @@ static struct mntent *getmntfile (FILE *fp, const char *file)
static struct option longopts[] = {
{ "fstype", 1, NULL, 'f'},
{ "mountcmd", 1, NULL, 'm'},
- { "opts", 1, NULL, 'o'},
+ { "options", 1, NULL, 'o'},
{ "passno", 1, NULL, 'p'},
longopts_COMMON
{ NULL, 0, NULL, 0}