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

webconsole3
Last change on this file since 38788bf was 1236d17, checked in by jm.bardallo <juanmanuel.bardallo@…>, 7 years ago

añadidos nuevamente los ficheros de opengnsys del branch devel, se habían quitado por error

  • Property mode set to 100644
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.