From b04a9d44be36c0aaede5c86ef1665493a206e806 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 29 Jul 2014 10:03:14 -0500 Subject: [PATCH] fix: zz-uenv_txt Signed-off-by: Robert Nelson --- lib/shared/zz-uenv_txt | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/shared/zz-uenv_txt b/lib/shared/zz-uenv_txt index f2d9be2..0440713 100644 --- a/lib/shared/zz-uenv_txt +++ b/lib/shared/zz-uenv_txt @@ -33,20 +33,19 @@ if [ -f ${udir}/uEnv.txt ] ; then if [ -f ${udir}/vmlinuz-current ] ; then rm -f ${udir}/vmlinuz-current || true cp /boot/vmlinuz-${version} ${udir}/vmlinuz-current - if [ "${zreladdr}" ] ; then - if [ -f ${udir}/uImage ] ; then - rm -rf ${udir}/uImage || true - mkimage -A arm -O linux -T kernel -C none -a ${zreladdr} -e ${zreladdr} -n ${version} -d ${udir}/vmlinuz-current ${udir}/uImage - fi + fi + if [ "${zreladdr}" ] ; then + if [ -f ${udir}/uImage ] ; then + rm -rf ${udir}/uImage || true + mkimage -A arm -O linux -T kernel -C none -a ${zreladdr} -e ${zreladdr} -n ${version} -d ${udir}/vmlinuz-current ${udir}/uImage fi fi if [ -f ${udir}/initrd.img-current ] ; then - rm -f ${udir}/ || true + rm -f ${udir}/initrd.img-current || true cp /boot/initrd.img-${version} ${udir}/initrd.img-current - if [ -f ${udir}/uInitrd ] ; then - rm -rf ${udir}/uInitrd || true - mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${udir}/initrd.img-current ${udir}/uInitrd - fi + if [ -f ${udir}/uInitrd ] ; then + rm -rf ${udir}/uInitrd || true + mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${udir}/initrd.img-current ${udir}/uInitrd fi if [ -d ${udir}/dtbs/current/ ] ; then rm -rf ${udir}/dtbs/current/ || true