--- elwix/build_fs.sh 2013/07/31 13:56:23 1.7.2.6 +++ elwix/build_fs.sh 2013/07/31 14:57:01 1.7.2.7 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_fs.sh,v 1.7.2.6 2013/07/31 13:56:23 misho Exp $ +# $Id: build_fs.sh,v 1.7.2.7 2013/07/31 14:57:01 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -37,9 +37,11 @@ clean_rel() mkdir -p $1 - cd ${ROMFS} - pax -rw -pe -X . $1 - cd - + if [ -d ${BASEFS} ]; then + cd ${BASEFS} + pax -rw -pe -X . $1 + cd - + fi } build_vardir() @@ -236,14 +238,6 @@ install_rel() cd -; case "$2" in - _128) - install -d $1/usr/local - cd $1/usr/local - pax -r -z -pe -f ${REL}/${ROMFS_IMG2} - cd - - - OSZ=${REL}/${OS_128} - ;; *) OSZ=${REL}/${OS} ;; @@ -254,15 +248,6 @@ install_rel() } ### main() -if [ ! -r ${REL}/${ROOTFS_KERN} -o ! -r ${REL}/${ROMFS_IMG} ]; then - echo - echo "Error:: not found kernel or firmware elwix files ..." - echo - echo " For fix this issue, please re-run build_rootfs.sh or build_romfs.sh" - echo - exit 1 -fi - clean_rel ${FS} ${REL}/${OS} build_vardir ${FS}/elwix mkhome ${FS}/elwix