source: client/shared/lib/os-probes/mounted/20macosx @ 1d1e06d

Last change on this file since 1d1e06d was 2cd8344, checked in by adv <adv@…>, 8 years ago

#796 os-probes librerias de grub con detección de nuevas versiones de sistemas opertativos (p.e win10). usado solo para ogLives antiguos (kernel 3.2)

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5378 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 719 bytes
Line 
1#!/bin/sh -e
2# Detects Mac OS X. I don't yet know how Mac OS <= 9 fits into this.
3. /usr/share/os-prober/common.sh
4
5partition="$1"
6mpoint="$2"
7type="$3"
8
9debug() {
10  logger -t macosx-prober "debug: $@"
11}
12
13# Weed out stuff that doesn't apply to us
14case "$type" in
15  hfsplus) debug "$1 is an HFS+ partition" ;;
16  *) debug "$1 is not an HFS+ partition: exiting"; exit 1 ;;
17esac
18
19# Could use a better test than this.
20# /System/Library/CoreServices/SystemVersion.plist has version information,
21# but I don't think it exists on Mac OS <= 9, and it's XML so parsing in
22# shell will be nasty.
23
24if [ -e "$2/mach_kernel" ]; then
25  label="$(count_next_label MacOSX)"
26  result "$1:Mac OS X:$label:macosx"
27  exit 0
28else
29  exit 1
30fi
Note: See TracBrowser for help on using the repository browser.