show_mounts ()
{
# Display mounted usb devices, or stuff in /media, /mnt or sshfs mounts.
info-col
echo
MNT=$(grep /mnt /etc/mtab | grep -v sshfs | cut -d" " -f2) 
MEDIA=$(grep /media /etc/mtab | grep -v sshfs | cut -d" " -f2)
SSHFS=$(grep sshfs /etc/mtab | cut -d" " -f2)
if egrep "(media|mnt|sshfs)" /etc/mtab > /dev/null 2>&1 ; then
    echo -e "  File system(s) currently mounted at:\n"

    display_mountpoints ()
        {
        if [ -n "$TEST" ] ; then 
            if [ "$TEST" != "$SSHFS" ] ; then 
                for each in $(echo "$TEST") ; do printf "  $each  " ; done
#                printf "\n" # Optional, uses extra line.
            else
                info-col ; printf "  sshfs:" ; head-col
                for each in $(echo "$TEST" | cut -d'/' -f 5) ; do printf "  $each  " ; done
            fi
            printf "\n"
        fi
        }
		bold
        head-col
        TEST=$MNT
        display_mountpoints
        fig-col
        TEST=$MEDIA
        display_mountpoints
        echo
        TEST=$SSHFS
        display_mountpoints
	
fi
}
