|
|
# 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 } |