#!/bin/sh type=$1 #[ -z "$type" ] && { echo "usage: $0 (eg: 3c59x)" ; exit 1; } [ -z "$type" ] && type=3c90x [ -e menu.lst ] || { echo "missing file menu.lst, create one based on menu.lst.example"; exit 1; } ln -sf stage1.$type stage1 ln -sf stage2.$type stage2 mformat a: mcopy {stage1,stage2} a: mcopy menu.lst a:menu.lst ./grub --batch <