--- auto.smb 2011-01-16 22:44:43.979205000 +0000 +++ auto.smb.new 2011-01-23 00:32:53.231423085 +0000 @@ -4,6 +4,7 @@ key="$1" opts="-fstype=cifs" +optsfile="/etc/auto.smb.$key" for P in /bin /sbin /usr/bin /usr/sbin do @@ -16,6 +17,10 @@ [ -x $SMBCLIENT ] || exit 1 +if [ -e $optsfile ]; then + opts="$opts,`cat $optsfile`" +fi + $SMBCLIENT -gNL $key 2>/dev/null| awk -v key="$key" -v opts="$opts" -F'|' -- ' BEGIN { ORS=""; first=1 } /Disk/ {