[usb-modeswitch-data] update to latest version.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-connectivity / autofs / autofs-4.1.4 / 066_canonicalise_mount_points.patch
1 #!/bin/sh /usr/share/dpatch/dpatch-run
2 ## 066_canonicalise_mount_points.dpatch
3 ##
4 ## DP: No description.
5
6 @DPATCH@
7
8 diff -Naur .B/samples/rc.autofs.in .A/samples/rc.autofs.in
9 --- .B/samples/rc.autofs.in     2007-01-07 21:36:35.000000000 +0000
10 +++ .A/samples/rc.autofs.in     2007-01-07 21:36:35.000000000 +0000
11 @@ -244,6 +244,13 @@
12                 continue
13             fi
14  
15 +           # If possible, canonicalise the path so it will always unmount
16 +           # cleanly.
17 +           link=`readlink -f "$dir"`
18 +           if [ ! -z "$link" ]; then
19 +                   dir="$link"
20 +           fi
21 +
22             # Do not include a map if it is a duplicate, maps on top of
23             # another map or another map, maps on top of it.
24             for knownmap in $knownmaps