43 # NFS exports shouldn't be globally exported |
43 # NFS exports shouldn't be globally exported |
44 # |
44 # |
45 if [ -f /etc/exports ]; then |
45 if [ -f /etc/exports ]; then |
46 cat /etc/exports | awk '{ |
46 cat /etc/exports | awk '{ |
47 # ignore comments and blank lines |
47 # ignore comments and blank lines |
48 if ($0 ~ /^\#/ || $0 ~ /^$/ ) |
48 if ($0 ~ /^#/ || $0 ~ /^$/ ) |
49 next; |
49 next; |
50 readwrite = 0; |
50 readwrite = 0; |
51 global = 0; |
51 global = 0; |
52 for (i = 2; i <= NF; ++i) { |
52 for (i = 2; i <= NF; ++i) { |
53 if ($i ~ /*/) |
53 if ($i ~ /*/) |