source: client/shared/lib/os-probes/mounted/30utility @ 23e53a5

918-git-images-111dconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since 23e53a5 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: 863 bytes
Line 
1#!/bin/sh
2# Detects utility (hw vendor recovery) partitions.
3
4. /usr/share/os-prober/common.sh
5
6partition="$1"
7mpoint="$2"
8type="$3"
9
10# Weed out stuff that doesn't apply to us
11case "$type" in
12        vfat)   debug "$1 is a FAT32 partition" ;;
13        msdos)  debug "$1 is a FAT16 partition" ;;
14        fat)    debug "$1 is a FAT partition (mounted by GRUB)" ;;
15        *)      debug "$1 is not a FAT partition: exiting"; exit 1 ;;
16esac
17
18# Dell Utility partitions have partition type 0xde, but no idea how to
19# cleanly detect that from shell
20if item_in_dir -q dellbio.bin "$2" && \
21   (item_in_dir -q delldiag.exe "$2" || item_in_dir -q delldiag.com "$2"); then
22        long="Dell Utility Partition"
23        short=DellUtility
24elif item_in_dir -q f11.sys "$2"; then
25        long="Acronis Secure Zone"
26        short=AcroneZone
27else
28        exit 1
29fi
30
31label="$(count_next_label "$short")"
32result "${partition}:${long}:${label}:chain"
33exit 0
Note: See TracBrowser for help on using the repository browser.