source: client/shared/lib/os-probes/mounted/10freedos @ b7bed1c

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 b7bed1c 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: 517 bytes
Line 
1#!/bin/sh
2
3. /usr/share/os-prober/common.sh
4
5partition="$1"
6mpoint="$2"
7type="$3"
8
9# Weed out stuff that doesn't apply to us
10case "$type" in
11        vfat) debug "$1 is a FAT32 partition" ;;
12        msdos) debug "$1 is a FAT16 partition" ;;
13        fat) debug "$1 is a FAT partition (mounted by GRUB)" ;;
14        *) debug "$1 is not a FAT partition: exiting"; exit 1 ;;
15esac
16
17if item_in_dir -q kernel.sys "$2" && item_in_dir -q command.com "$2"; then
18        label="$(count_next_label FreeDOS)"
19        result "$1:FreeDOS:$label:chain"
20        exit 0
21else
22        exit 1
23fi
Note: See TracBrowser for help on using the repository browser.