]>
Commit | Line | Data |
---|---|---|
e184b71a PG |
1 | diff --git a/samples/auto.smb b/samples/auto.smb |
2 | index 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 |