From 82df7e4584282896a0618f14cca2dd3f3d23e8a2 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 29 Nov 2007 11:23:06 +0000 Subject: Use shorthand for loops --- init.d/netmount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.d/netmount') 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;; -- cgit v1.2.3