1 nas100d_pack_image () {
2 install -d ${DEPLOY_DIR_IMAGE}/firmupgrade
3 install -m 0755 ${DEPLOY_DIR_IMAGE}/zImage-nslu2${SITEINFO_ENDIANNESS}.bin \
4 ${DEPLOY_DIR_IMAGE}/firmupgrade/ip-ramdisk
5 install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
6 ${DEPLOY_DIR_IMAGE}/firmupgrade/rootfs.gz
7 touch ${DEPLOY_DIR_IMAGE}/firmupgrade/usr.cramfs
8 chmod 0644 ${DEPLOY_DIR_IMAGE}/firmupgrade/usr.cramfs
9 echo "hwid=1.0.1" >${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
10 echo "model=koala" >>${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
11 echo "vendor=iomega" >>${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
12 echo "" >>${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
13 chmod 0744 ${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
14 tar -c -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-nas100d.bin \
15 -C ${DEPLOY_DIR_IMAGE} firmupgrade
16 rm -rf ${DEPLOY_DIR_IMAGE}/firmupgrade
19 IMAGE_POSTPROCESS_COMMAND += "nas100d_pack_image; "