From 5d58488f8dbb2d814b878de82b8464d1b658df00 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 17 Apr 2013 16:44:33 -0500 Subject: [PATCH] scripts: start blank Signed-off-by: Robert Nelson --- mk_mmc.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 385011f..6cbb5b5 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1,4 +1,3 @@ -#!/bin/bash -e # # Copyright (c) 2009-2013 Robert Nelson # @@ -325,6 +324,10 @@ function dl_netinstall_image { } function boot_uenv_txt_template { + #Start with a blank state: + echo "" > ${TEMPDIR}/bootscripts/normal.cmd + echo "" > ${TEMPDIR}/bootscripts/netinstall.cmd + if [ "${need_dtbs}" ] && [ "x${uboot_fdt_auto_detection}" != "xenabled" ]; then cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ initrd_high=0xffffffff @@ -353,13 +356,13 @@ function boot_uenv_txt_template { conf_net_initrd_file=initrd.net fi - cat > ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ + cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ kernel_file=${conf_normal_kernel_file} initrd_file=${conf_normal_initrd_file} __EOF__ - cat > ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ + cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ kernel_file=${conf_net_kernel_file} initrd_file=${conf_net_initrd_file}