Package: os-prober Version: 1.30 Severity: wishlist Tags: patch Here's a shell snippet for ReactOS detection.
-- System Information: Debian Release: 5.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-libre2-2-amd64 (SMP w/2 CPU cores) Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
#!/bin/sh # Detects ReactOS on a collection of partitions. .. /usr/share/os-prober/common.sh partition=$1 mpoint=$2 type=$3 # Weed out stuff that doesn't apply to us case "$type" in vfat) debug "$1 is a FAT32 partition" ;; msdos) debug "$1 is a FAT16 partition" ;; *) debug "$1 is not a MS partition: exiting"; exit 1 ;; esac if item_in_dir -q freeldr.sys "$2"; then long=ReactOS short=ReactOS else exit 1 fi label=$(count_next_label $short) result "${partition}:${long}:${label}:reactos" exit 0