diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-04-28 07:39:35 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-04-28 07:39:35 (GMT) |
commit | 1f16a5e0fc0039a306726fb56eee75e5699c9db0 (patch) | |
tree | 09bec2c8e61afe32158399e7ab62c078344a3b57 /abs/extra-testing/autofs/auto.net | |
parent | b4d05eea2684f73c8f7c3b2bfa06a4da78827c8a (diff) | |
download | linhes_pkgbuild-1f16a5e0fc0039a306726fb56eee75e5699c9db0.zip linhes_pkgbuild-1f16a5e0fc0039a306726fb56eee75e5699c9db0.tar.gz linhes_pkgbuild-1f16a5e0fc0039a306726fb56eee75e5699c9db0.tar.bz2 |
Latest autofs, closes FS# 333.
Diffstat (limited to 'abs/extra-testing/autofs/auto.net')
-rw-r--r-- | abs/extra-testing/autofs/auto.net | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/abs/extra-testing/autofs/auto.net b/abs/extra-testing/autofs/auto.net deleted file mode 100644 index 20861d1..0000000 --- a/abs/extra-testing/autofs/auto.net +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -# $Id: auto.net,v 1.1 2003/11/15 15:40:14 manolis Exp $ - -# Look at what a host is exporting to determine what we can mount. -# This is very simple, but it appears to work surprisingly well - -key="$1" - -# add "nosymlink" here if you want to suppress symlinking local filesystems -# Note: "nonstrict" is now set by default, remove it if you don't want it. -opts="-fstype=nfs,hard,intr,nodev,nosuid,nonstrict" - -# Showmount comes in a number of names and varieties. "showmount" is -# typically an older version which accepts the '--no-headers' flag -# but ignores it. "kshowmount" is the newer version installed with knfsd, -# which both accepts and acts on the '--no-headers' flag. -#SHOWMOUNT="kshowmount --no-headers -e $key" -#SHOWMOUNT="showmount -e $key | tail +2" - -# Newer distributions get this right -SHOWMOUNT="/usr/sbin/showmount --no-headers -e $key" - -$SHOWMOUNT | LC_ALL=C sort +0 | \ - awk -v key="$key" -v opts="$opts" -- ' - BEGIN { ORS=""; first=1 } - { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 } - END { if (!first) print "\n"; else exit 1 } - ' |