git-svn-id: http://phraktured.net/archiso@11 00a9fe69-e71b-0410-bb23-df0e5024db41

This commit is contained in:
Aaron Griffin 2006-09-19 15:15:42 +00:00
parent 04d35d77f9
commit 8660ae6b5a

30
gen_grubscan Normal file
View File

@ -0,0 +1,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"