2 # convert amd maps to Sun automount maps
5 # Package: am-utils-6.0
6 # Author: "Mark D. Baushke" <mdb@cisco.com>
8 print "# file created by amd2sun
10 # DO NOT EDIT THIS FILE AT ALL
11 # It is automatically generated from the amd mount map - edit that instead
18 while ($line =~ /\\$/) {
26 next unless $line =~ /^([^\s]+)\s+(.*)$/;
30 if ($fs =~ /^\/defaults/) {
31 ($defopts = $rest) =~ s/^.*[\s;]opts:=([^;\s]+)[;\s]*.*$/\1/;
37 if ($rest =~ /opts:=([^;\s]+)[;\s]/) {
41 $opts =~ s/,ping=[-\d]+//g;
43 ($rhost = $rest) =~ s/^.*[\s;]rhost:=([^;\s]+)[;\s]*.*$/\1/;
44 ($rfs = $rest) =~ s/^.*[\s;]rfs:=([^;\s]+)[;\s]*.*$/\1/;
46 if ($rest =~ /sublink:=([^;\s]+)[;\s]/ ) {
50 print "$fs -$opts $rhost:$rfs\n";