Lines 31-37
if item_in_dir -q bootmgr "$2"; then
Link Here
|
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 [ -n "$bcd" ]; then |
34 |
if grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then |
34 |
if grep -qs "W.i.n.d.o.w.s. .1.0" "$2/$boot/$bcd"; then |
|
|
35 |
long="Windows 10 (loader)" |
36 |
elif grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then |
35 |
long="Windows 8 (loader)" |
37 |
long="Windows 8 (loader)" |
36 |
elif grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then |
38 |
elif grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then |
37 |
long="Windows 7 (loader)" |
39 |
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 |
48 |
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)" |
49 |
long="Windows Recovery Environment (loader)" |
48 |
else |
50 |
else |
49 |
long="Windows Vista (loader)" |
51 |
long="Windows (loader)" |
50 |
fi |
52 |
fi |
51 |
short=Windows |
53 |
short=Windows |
52 |
|
54 |
|