#!/bin/sh PATH=/sbin:$PATH export PATH IMAGE=initrd.img DIR=initrd SIZE=1800 MNTPOINT=/tmp/mkimage.mnt-$$ if [ "$1" != "-f" ]; then if [ -f $IMAGE ]; then echo "$IMAGE already exists." >&2 exit 1 fi fi rm -f /tmp/initrd.img dd if=/dev/zero of=/tmp/initrd.img bs=1k count=$SIZE mke2fs -q /tmp/initrd.img $SIZE < $IMAGE echo " done." rm -rf $MNTPOINT size=`cat $IMAGE initrd.img | wc -c` filler=`expr 1474560 - $size` cp $IMAGE ../../../dosutils/autoboot/initrd.img