--opts to --options

This commit is contained in:
Roy Marples 2007-09-19 11:53:35 +00:00
parent 5248fb52fa
commit 987c72f12f
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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}