]> git.pld-linux.org Git - packages/autofs.git/blame - autofs-4.1.4-auto.smb-cifs.patch
- use FHS dirname
[packages/autofs.git] / autofs-4.1.4-auto.smb-cifs.patch
CommitLineData
e184b71a
PG
1diff --git a/samples/auto.smb b/samples/auto.smb
2index ad44fc0..d0abcd7 100755
3--- a/samples/auto.smb
4+++ b/samples/auto.smb
5@@ -5,7 +5,7 @@
6 # This file must be executable to work! chmod 755!
7
8 key="$1"
9-opts="-fstype=smbfs"
10+opts="-fstype=cifs"
11
12 for P in /bin /sbin /usr/bin /usr/sbin
13 do
14@@ -20,7 +20,7 @@ done
15
16 $SMBCLIENT -gNL $key 2>/dev/null| awk -v key="$key" -v opts="$opts" -F'|' -- '
17 BEGIN { ORS=""; first=1 }
18- /Disk/ { if (first) { print opts; first=0 }; print " \\\n\t /" $2, "://" key "/" $2 }
19+ /Disk/ { if (first) { print opts; first=0 }; sub(/ /, "\\ ", $2); print " \\\n\t /" $2, "://" key "/" $2 }
20 END { if (!first) print "\n"; else exit 1 }
21 '
22
This page took 0.072511 seconds and 4 git commands to generate.