X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=blobdiff_plain;f=meta-openvuplus%2Frecipes-connectivity%2Fautofs%2Fautofs-4.1.4%2F080_auto_smb_probe_credentials.patch;fp=meta-openvuplus%2Frecipes-connectivity%2Fautofs%2Fautofs-4.1.4%2F080_auto_smb_probe_credentials.patch;h=0000000000000000000000000000000000000000;hp=0b6ca448105ea80267b651c731feb07c7a6a0b74;hb=520cb41ce6637db5d9fd6b97963ebcfd2f42b926;hpb=6e3f6f45b2000e586b26d626139553144face1bc;ds=sidebyside diff --git a/meta-openvuplus/recipes-connectivity/autofs/autofs-4.1.4/080_auto_smb_probe_credentials.patch b/meta-openvuplus/recipes-connectivity/autofs/autofs-4.1.4/080_auto_smb_probe_credentials.patch deleted file mode 100644 index 0b6ca44..0000000 --- a/meta-openvuplus/recipes-connectivity/autofs/autofs-4.1.4/080_auto_smb_probe_credentials.patch +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh /usr/share/dpatch/dpatch-run -## 080_auto_smb_probe_credentials.dpatch -## -## DP: No description. - -@DPATCH@ - -diff -Naur .B/samples/auto.smb .A/samples/auto.smb ---- .B/samples/auto.smb 2007-01-07 21:36:36.000000000 +0000 -+++ .A/samples/auto.smb 2007-01-07 21:36:37.000000000 +0000 -@@ -5,7 +5,9 @@ - # This file must be executable to work! chmod 755! - - key="$1" --opts="-fstype=cifs" -+mountopts="-fstype=cifs" -+smbopts="" -+credfile="/etc/auto.smb.$key" - - for P in /bin /sbin /usr/bin /usr/sbin - do -@@ -18,7 +20,14 @@ - - [ -x $SMBCLIENT ] || exit 1 - --$SMBCLIENT -gNL $key 2>/dev/null| awk -v key="$key" -v opts="$opts" -F'|' -- ' -+if [ -e $credfile ]; then -+ mountopts="$mountopts,credentials=$credfile" -+ smbopts="-A $credfile" -+else -+ smbopts="-N" -+fi -+ -+$SMBCLIENT $smbopts -gL $key 2>/dev/null| awk -v key="$key" -v opts="$mountopts" -F'|' -- ' - BEGIN { ORS=""; first=1 } - /Disk/ { if (first) { print opts; first=0 }; sub(/ /, "\\ ", $2); print " \\\n\t /" $2, "://" key "/" $2 } - END { if (!first) print "\n"; else exit 1 }