diff options
author | Mike Westerhof <mwester@dls.net> | 2006-12-24 19:06:57 +0000 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2006-12-24 19:06:57 +0000 |
commit | eeb8e07d60ca182da85106ff5526c7f09be01497 (patch) | |
tree | 3759a6d792de5ada581fd5f39710c364d48bcc57 /packages | |
parent | 2a6b83858187373d4533400ae3a45c650031ce69 (diff) |
slugos-image.bb - now creates an image file in D-LINK DSM-G600 format as well.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/images/slugos-image.bb | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/packages/images/slugos-image.bb b/packages/images/slugos-image.bb index 82cd6f2b73..a85179f174 100644 --- a/packages/images/slugos-image.bb +++ b/packages/images/slugos-image.bb @@ -6,7 +6,7 @@ DESCRIPTION = "Generic SlugOS image" HOMEPAGE = "http://www.nslu2-linux.org" LICENSE = "MIT" -PR = "r41" +PR = "r42" COMPATIBLE_MACHINE = "nslu2" @@ -136,6 +136,24 @@ nslu2_pack_image() { -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.flashdisk.img \ ${NSLU2_SLUGIMAGE_ARGS} rm -rf ${DEPLOY_DIR_IMAGE}/slug + + # Create an image for the DSM-G600 as well + install -d ${DEPLOY_DIR_IMAGE}/firmupgrade + install -m 0755 ${DEPLOY_DIR_IMAGE}/zImage-dsmg600${ARCH_BYTE_SEX} \ + ${DEPLOY_DIR_IMAGE}/firmupgrade/ip-ramdisk + install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \ + ${DEPLOY_DIR_IMAGE}/firmupgrade/rootfs.gz + touch ${DEPLOY_DIR_IMAGE}/firmupgrade/usr.cramfs + chmod 0644 ${DEPLOY_DIR_IMAGE}/firmupgrade/usr.cramfs + echo "hwid=1.0.1" >${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg + echo "model=dsm-g600" >>${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg + echo "vendor=dlink" >>${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg + echo "" >>${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg + chmod 0744 ${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg + tar -c -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.dsmg600.bin \ + -C ${DEPLOY_DIR_IMAGE} firmupgrade + rm -rf ${DEPLOY_DIR_IMAGE}/firmupgrade + fi } |