Thu, 12 Jun 2008 18:00:04 +0100
On Thursday 12 June 2008, Cedric Veilleux wrote:
> > if showattr -d <mount point> | grep -q X; then
> > # Tagging enabled
> > else
> > # Tagging disabled
> > fi
>
> Watch out for a mount point that contains an X in the path: it will
> match the condition even if tagxid is disabled ;)
Indeed.
This would be a little safer:
if showattr -d <mount point> | cut -d ' ' -f 1 | grep -q X; then
# Tagging enabled
else
# Tagging disabled
fi
Cheers,
Steve.
["application/pgp-signature" not shown]