summaryrefslogtreecommitdiffstats
path: root/tools/i386/netboot/make_boot_network
blob: a0b0302a476c46750d991301811de6e518d25f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

type=$1
[ -z "$type" ] && { echo "usage: $0 <network card type> (eg: 3c90x)" ; exit 1; }

[ -e menu.lst ] || { echo "missing file menu.lst, create one based on menu.lst.example"; exit 1; }

ln -sf ${type}/stage1 stage1
ln -sf ${type}/stage2 stage2

mformat a:
mcopy {stage1,stage2} a:
mcopy menu.lst a:menu.lst

./grub --batch <<EOF
install (fd0)/stage1 d (fd0) (fd0)/stage2 p (fd0)/menu.lst $automatic
EOF