fix: zz-uenv_txt

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 11 years ago
parent acad3d7b58
commit b04a9d44be

@ -33,20 +33,19 @@ if [ -f ${udir}/uEnv.txt ] ; then
if [ -f ${udir}/vmlinuz-current ] ; then if [ -f ${udir}/vmlinuz-current ] ; then
rm -f ${udir}/vmlinuz-current || true rm -f ${udir}/vmlinuz-current || true
cp /boot/vmlinuz-${version} ${udir}/vmlinuz-current cp /boot/vmlinuz-${version} ${udir}/vmlinuz-current
if [ "${zreladdr}" ] ; then fi
if [ -f ${udir}/uImage ] ; then if [ "${zreladdr}" ] ; then
rm -rf ${udir}/uImage || true if [ -f ${udir}/uImage ] ; then
mkimage -A arm -O linux -T kernel -C none -a ${zreladdr} -e ${zreladdr} -n ${version} -d ${udir}/vmlinuz-current ${udir}/uImage rm -rf ${udir}/uImage || true
fi mkimage -A arm -O linux -T kernel -C none -a ${zreladdr} -e ${zreladdr} -n ${version} -d ${udir}/vmlinuz-current ${udir}/uImage
fi fi
fi fi
if [ -f ${udir}/initrd.img-current ] ; then 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 cp /boot/initrd.img-${version} ${udir}/initrd.img-current
if [ -f ${udir}/uInitrd ] ; then if [ -f ${udir}/uInitrd ] ; then
rm -rf ${udir}/uInitrd || true 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 mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${udir}/initrd.img-current ${udir}/uInitrd
fi
fi fi
if [ -d ${udir}/dtbs/current/ ] ; then if [ -d ${udir}/dtbs/current/ ] ; then
rm -rf ${udir}/dtbs/current/ || true rm -rf ${udir}/dtbs/current/ || true

Loading…
Cancel
Save