diff options
author | Steve Dickson <steved@redhat.com> | 2009-02-23 12:34:19 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-02-23 12:34:19 -0500 |
commit | e56100c166970024cd1892dd8f608c53c1e57faa (patch) | |
tree | 2c620e23ae0fdceca3e69aa24d406752bb064c2b | |
parent | 68d160ea19a272cf0718000751fe9a422e4fbc96 (diff) | |
download | cthon04-e56100c166970024cd1892dd8f608c53c1e57faa.tar.gz cthon04-e56100c166970024cd1892dd8f608c53c1e57faa.tar.xz cthon04-e56100c166970024cd1892dd8f608c53c1e57faa.zip |
Added the minver argument
Signed-off-by: Steve Dickson <steved@redhat.com>
-rwxr-xr-x | runcthon | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -18,9 +18,9 @@ sec=$5 if [ $vers = "4" ]; then if [ -n "$sec" ] ; then - mntargs="-F nfs4 -o proto=$proto,sec=$sec" + mntargs="-F nfs4 -o proto=$proto,sec=$sec,minorversion=$minver" else - mntargs="-F nfs4 -o proto=$proto" + mntargs="-F nfs4 -o proto=$proto,minorversion=$minver" fi else if [ -n "$sec" ] ; then @@ -71,7 +71,7 @@ mkdirs() } trap 'echo SIGINT; pkill runcthon server; exit 1 ' SIGINT trap 'echo; echo -n "Done:"; date; exit 2' SIGTERM -Usage="$0 --mkdirs --unmountall|--server|--serverdir|--noudp|--dokrb5|--onlykrb5|--nov4|--onlyv3|--onlyv4" +Usage="$0 --mkdirs --unmountall|--server|--serverdir|--noudp|--dokrb5|--onlykrb5|--nov4|--onlyv3|--onlyv4|--minver" noudp=0 dokrb5=0 @@ -79,6 +79,7 @@ onlykrb5=0 nov4=0 onlyv3=0 onlyv4=0 +minver=0 while [ -n "$1" ] do case $1 in @@ -123,6 +124,10 @@ do "--onlyv4" ) onlyv4=1 ;; + "--minver" ) + minver=$2 + shift + ;; * ) echo "'$1' - invalid option" echo "$Usage" |