blob: a2ac4df021e0d57aebb86181219c4b80d99e6453 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
count=0
fallback=""
for hd in $(seq 0 3); do
for part in $(seq 0 17); do
count=$(($count + 1))
fallback="${fallback} ${count}"
done
done
echo "timeout 0"
echo "default 0"
echo "fallback ${fallback}"
echo "color light-blue/blue black/light-grey"
echo "splashimage=/boot/splash.xpm.gz"
echo ""
for hd in $(seq 0 3); do
for part in $(seq 0 17); do
echo "title Testing disk ${hd}, partition ${part}"
echo "set scan_dev=(hd${hd},${part})"
echo "fexists \$(scan_dev)/boot/grub/menu.lst"
echo "configfile \$(scan_dev)/boot/grub/menu.lst"
echo ""
done
done
echo "title Failed"
echo "pause Scanning for installed grub failed"
|