--- elwix/build_fs.sh 2012/10/09 12:19:20 1.3.2.8 +++ elwix/build_fs.sh 2012/10/10 14:13:16 1.3.2.11 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_fs.sh,v 1.3.2.8 2012/10/09 12:19:20 misho Exp $ +# $Id: build_fs.sh,v 1.3.2.11 2012/10/10 14:13:16 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -161,8 +161,8 @@ create_etc_fstab() # Automatic generated fstab for ELWIX at ${BUILD_DATE} # /dev/ufs/elwix /elwix ufs ro 0 1 -md3 /tmp mfs rw,-s8m,-oasync,-S 0 0 -md4 /var mfs rw,-s16m,-S 0 0 +md4 /tmp mfs rw,-s8m,-oasync,-S 0 0 +md5 /var mfs rw,-s16m,-S 0 0 _EOF } @@ -241,9 +241,20 @@ install_fsdir() install -v ${REL}/${ROOTFS_KERN} ${FS}/boot/kernel - install -v ${REL}/${ROMFS_IMG} ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} - ln ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/altroot/${ROMFS_IMG} - ln -s /elwix/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/${ROMFS_IMG} + if [ "${BUILD_FRMIMG}" = "YES" ]; then + install -v ${REL}/${ROMFS_IMG} ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} + ln ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/altroot/${ROMFS_IMG} + ln -s /elwix/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/${ROMFS_IMG} + + install -v ${REL}/${ROMFS_IMG2} ${FS}/altroot/elwix-firmware2-${VERSION}_${TARGET_ARCH} + ln ${FS}/altroot/elwix-firmware2-${VERSION}_${TARGET_ARCH} ${FS}/altroot/${ROMFS_IMG2} + ln -s /elwix/altroot/elwix-firmware2-${VERSION}_${TARGET_ARCH} ${FS}/${ROMFS_IMG2} + else + install -d ${FS}/usr + cd ${FS}/usr + pax -r -z -pe -f ${REL}/${ROMFS_IMG} + cd - + fi cd $FS tar -czvf ${REL}/${OS} .