hfs_test.in 351 B

123456789101112131415161718192021222324
  1. #!@BUILD_SHEBANG@
  2. set -e
  3. if [ "x$EUID" = "x" ] ; then
  4. EUID=`id -u`
  5. fi
  6. if [ "$EUID" != 0 ] ; then
  7. exit 77
  8. fi
  9. if ! which mkfs.hfs >/dev/null 2>&1; then
  10. echo "mkfs.hfs not installed; cannot test HFS."
  11. exit 77
  12. fi
  13. if ! modprobe mac-roman; then
  14. echo "no mac-roman support; cannot test HFS."
  15. exit 77
  16. fi
  17. "@builddir@/grub-fs-tester" hfs