diff --git a/mk_mmc.sh b/mk_mmc.sh index 55a89fb..71d29bf 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -573,23 +573,19 @@ function boot_uenv_txt_template { mmc_load_uinitrd=fatload mmc 0:1 \${address_uinitrd} \${bootinitrd} __EOF__ -if test "-$ADDON-" = "-ulcd-" -then + if [ "x${ADDON}" == "xulcd" ] ; then + cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ + lcd1=i2c mw 40 00 00; i2c mw 40 04 80; i2c mw 40 0d 05 + uenvcmd=i2c dev 1; run lcd1; i2c dev 0 -cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ + lcd1=i2c mw 40 00 00; i2c mw 40 04 80; i2c mw 40 0d 05 + uenvcmd=i2c dev 1; run lcd1; i2c dev 0 -ulcd_uenv_normalboot_cmd -fi + __EOF__ + fi case "$SYSTEM" in beagle_bx)