summaryrefslogtreecommitdiff
path: root/archiso/gen_grubscan
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-09-06 20:39:35 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-09-06 20:39:35 -0500
commit8966351b12bbcf2f8fffbd8c3a4b00e7529349b8 (patch)
treea54505adcbc029bce687788150df4383e5e936e0 /archiso/gen_grubscan
parent99ed5349b32951fa1ec28cc2ee3caaff83fcd681 (diff)
downloadarchiso32-8966351b12bbcf2f8fffbd8c3a4b00e7529349b8.tar.xz
Split mkarchiso and configs into logical parts
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso/gen_grubscan')
-rw-r--r--archiso/gen_grubscan30
1 files changed, 30 insertions, 0 deletions
diff --git a/archiso/gen_grubscan b/archiso/gen_grubscan
new file mode 100644
index 0000000..a2ac4df
--- /dev/null
+++ b/archiso/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"