summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-19 11:53:35 +0000
committerRoy Marples <roy@marples.name>2007-09-19 11:53:35 +0000
commit987c72f12f41b8108447810fe84fd9f16e6d29d7 (patch)
treeff656af54b2390069ad041384981f1f0a1e02681
parent5248fb52fa428f2a966a10d0db8991ef26c96b02 (diff)
downloadopenrc-987c72f12f41b8108447810fe84fd9f16e6d29d7.tar.gz
openrc-987c72f12f41b8108447810fe84fd9f16e6d29d7.tar.bz2
openrc-987c72f12f41b8108447810fe84fd9f16e6d29d7.tar.xz
--opts to --options
-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 2b0af2f..c0f3e9f 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 eecaf8a..922a0c9 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}