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

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

ks="../../../install/ks.cfg"
[ -e $ks ] || { echo "missing file $ks, create one based on $ks.default"; exit 1; }


ln -sf stage1.$1 stage1
ln -sf stage2.$1 stage2

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

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