blob: b9739c4867c8b510751371af23db5d953a448ca6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
type=$1
#[ -z "$type" ] && { echo "usage: $0 <network card type> (eg: 3c59x)" ; exit 1; }
[ -z "$type" ] && type=3c90x
[ -e automatic.para ] || { echo "missing file automatic.para, create one based on automatic.para.default"; exit 1; }
ln -sf stage1.$type stage1
ln -sf stage2.$type stage2
mformat a:
mcopy {stage1,stage2} a:
perl -pe 'chomp; $_ .= " " . `cat automatic.para` if /^kernel/; $_ .= "\n"' menu.lst | mcopy - a:menu.lst
./grub --batch <<EOF
install (fd0)/stage1 d (fd0) (fd0)/stage2 p (fd0)/menu.lst $automatic
EOF
|