#!/bin/sh

CUR=`pwd`

gunzip < boot1/vmlinux.gz > tftp/vmlinux-elf
elftoaout -o tftp/vmlinux-aout tftp/vmlinux-elf

cp -f tftp/vmlinux-aout ../../../images/tftpboot.img.new

$CUR/piggyback ../../../images/tftpboot.img.new tftp/System.map ramdisk.img
dd if=../../../images/tftpboot.img.new of=../../../images/tftpboot.img \
	conv=sync
rm -f ../../../images/tftpboot.img.new
