View | Details | Raw Unified | Return to bug 31347
Collapse All | Expand All

(-)os-prober-1.61/os-probes/mounted/x86/20microsoft (-3 / +4 lines)
Lines 30-37 if item_in_dir -q bootmgr "$2"; then Link Here
30
	# boot Boot BOOT
30
	# boot Boot BOOT
31
	for boot in $(item_in_dir boot "$2"); do
31
	for boot in $(item_in_dir boot "$2"); do
32
		bcd=$(item_in_dir bcd "$2/$boot")
32
		bcd=$(item_in_dir bcd "$2/$boot")
33
		if [ -n "$bcd" ]; then
33
			if grep -qs "W.i.n.d.o.w.s. .1.0" "$2/$boot/$bcd"; then
34
			if grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
34
				long="Windows 10 (loader)"
35
			elif grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
35
				long="Windows 8 (loader)"
36
				long="Windows 8 (loader)"
36
			elif grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
37
			elif grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
37
				long="Windows 7 (loader)"
38
				long="Windows 7 (loader)"
Lines 46-52 if item_in_dir -q bootmgr "$2"; then Link Here
46
			elif grep -qs "W.i.n.d.o.w.s. .S.e.t.u.p" "$2/$boot/$bcd"; then
47
			elif grep -qs "W.i.n.d.o.w.s. .S.e.t.u.p" "$2/$boot/$bcd"; then
47
				long="Windows Recovery Environment (loader)"
48
				long="Windows Recovery Environment (loader)"
48
			else
49
			else
49
				long="Windows Vista (loader)"
50
				long="Windows (loader)"
50
			fi
51
			fi
51
			short=Windows
52
			short=Windows
52
53

Return to bug 31347