diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mount-store | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mount-store b/scripts/mount-store index 0faf236..94b868d 100755 --- a/scripts/mount-store +++ b/scripts/mount-store @@ -177,13 +177,13 @@ main () { fi if [ "$RET" != 0 ]; then for opt in "#" "vers=4" "vers=3"; do - mntopts="rw,noatime,noexec,nodev,async,nolock,fg,ac,retry=0,timeo=200,sec=sys" - [ "$opt" != "#" ] && mntopts="$mntopts,$opt" - exec_mount "nfs" "$mntopts" "$SOURCE" "$DEST" + OPTSTR="rw,noatime,noexec,nodev,async,nolock,fg,ac,retry=0,timeo=200,sec=sys" + [ "$opt" != "#" ] && OPTSTR="$OPTSTR,$opt" + exec_mount "nfs" "$OPTSTR" "$SOURCE" "$DEST" RET=$? [ "$RET" = 0 ] && break done - if [ "$RET" = 0 ] && [ -n "$mntopts" ]; then + if [ "$RET" = 0 ] && [ -n "$OPTSTR" ]; then echo "$OPTSTR" > "$NFS_OPTS" fi fi |