PHP 7.4.33
Preview: 20macosx Size: 842 B
/home/godevadmin/public_html/upload_images/home/000~ROOT~000/usr/libexec/os-probes/mounted/20macosx

#!/bin/sh -e
# Detects Mac OS X. I don't yet know how Mac OS <= 9 fits into this.
. /usr/share/os-prober/common.sh

partition="$1"
mpoint="$2"
type="$3"

debug() {
  if [ -z "$OS_PROBER_DISABLE_DEBUG" ]; then
    logger -t macosx-prober "debug: $@"
  fi
}

# Weed out stuff that doesn't apply to us
case "$type" in
  hfsplus) debug "$1 is an HFS+ partition" ;;
  *) debug "$1 is not an HFS+ partition: exiting"; exit 1 ;;
esac

# Could use a better test than this.
# /System/Library/CoreServices/SystemVersion.plist has version information,
# but I don't think it exists on Mac OS <= 9, and it's XML so parsing in
# shell will be nasty.

if [ -e "$2/mach_kernel" ] && ! dd if="$2/mach_kernel" count=1 bs=5 2>/dev/null | grep -aq Dummy ; then
  label="$(count_next_label MacOSX)"
  result "$1:Mac OS X:$label:macosx"
  exit 0
else
  exit 1
fi

Directory Contents

Dirs: 1 × Files: 12

Name Size Perms Modified Actions
efi DIR
- drwxr-xr-x 2024-08-07 14:16:01
Edit Download
2.02 KB lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
517 B lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
390 B lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
842 B lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
3.37 KB lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
863 B lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
891 B lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
247 B lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
431 B lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
884 B lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
5.60 KB lrwxr-xr-x 2021-10-09 02:56:52
Edit Download
385 B lrwxr-xr-x 2021-10-09 02:56:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).