#!/bin/sh

set -e

if [ "x$EUID" = "x" ] ; then
  EUID=`id -u`
fi

if [ "$EUID" != 0 ] ; then
   exit 77
fi

if ! which mkudffs >/dev/null 2>&1; then
   echo "mkudffs not installed; cannot test UDF."
   exit 77
fi

"@builddir@/grub-fs-tester" udf

