summaryrefslogtreecommitdiff
path: root/gen_grubscan
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-09-19 15:15:42 +0000
committerAaron Griffin <aaron@archlinux.org>2006-09-19 15:15:42 +0000
commit8660ae6b5a7209f6583926673af75b52b1b4f523 (patch)
treef05832a10fce01ebe4140603d40a4c26c386128a /gen_grubscan
parent04d35d77f91a593bbf88bc5dfaa431d5c0e5a0cb (diff)
downloadarchiso32-8660ae6b5a7209f6583926673af75b52b1b4f523.tar.xz
git-svn-id: http://phraktured.net/archiso@11 00a9fe69-e71b-0410-bb23-df0e5024db41
Diffstat (limited to 'gen_grubscan')
-rw-r--r--gen_grubscan30
1 files changed, 30 insertions, 0 deletions
diff --git a/gen_grubscan b/gen_grubscan
new file mode 100644
index 0000000..a2ac4df
--- /dev/null
+++ b/gen_grubscan
@@ -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"