diff options
author | Roy Marples <roy@marples.name> | 2007-11-29 11:23:06 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-29 11:23:06 +0000 |
commit | 82df7e4584282896a0618f14cca2dd3f3d23e8a2 (patch) | |
tree | 05a0c01d32adbbb2df8d833b97918454a3178a04 /init.d/netmount | |
parent | 50161bef0e27ca235d876b888ae5abcafbec2ac7 (diff) |
Use shorthand for loops
Diffstat (limited to 'init.d/netmount')
-rwxr-xr-x | init.d/netmount | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/netmount b/init.d/netmount index 08cdf42d..df6e0c99 100755 --- a/init.d/netmount +++ b/init.d/netmount @@ -30,7 +30,7 @@ need_portmap() { local mnt opts ret IFS=" " set -- $(fstabinfo --fstype nfs,nfs4) - for mnt in "$@"; do + for mnt; do case ,$(fstabinfo --options "${mnt}"), in *,noauto,*|*,nolock,*);; *) return 0;; |