View | Details | Raw Unified
Collapse All | Expand All

(-) autofs-4.1.4/samples/auto.net.orig (-1 / +1 lines)
 Lines 37-43   done Link Here 
# Newer distributions get this right
# Newer distributions get this right
SHOWMOUNT="$SMNT --no-headers -e $key"
SHOWMOUNT="$SMNT --no-headers -e $key"
$SHOWMOUNT | LC_ALL=C sort +0 | \
$SHOWMOUNT | LC_ALL=C sort -k 1 | \
	awk -v key="$key" -v opts="$opts" -- '
	awk -v key="$key" -v opts="$opts" -- '
	BEGIN	{ ORS=""; first=1 }
	BEGIN	{ ORS=""; first=1 }
		{ if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
		{ if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }