From 45a7b5c6959eb9de6fd700b789f1b6b64e9c60d9 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Fri, 25 Jul 2014 18:32:28 -0500 Subject: [PATCH] mk_mmc.sh: facter this out Signed-off-by: Robert Nelson --- mk_mmc.sh | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index d596147..41b90db 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -956,34 +956,26 @@ initrd_preseed_settings () { flash_kernel_broken patch_linux_version patch_flash_kernel_db - if [ "x${conf_smart_uboot}" = "xenable" ] ; then - sed -i -e 's:smart_DISABLED:enable:g' ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh - fi ;; utopic) cp -v "${DIR}/lib/ubuntu-finish.sh" ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh cp -v "${DIR}/lib/flash_kernel/all.db" ${TEMPDIR}/initrd-tree/etc/all.db neuter_flash_kernel - if [ "x${conf_smart_uboot}" = "xenable" ] ; then - sed -i -e 's:smart_DISABLED:enable:g' ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh - fi ;; wheezy) cp -v "${DIR}/lib/debian-finish.sh" ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh - if [ "x${conf_smart_uboot}" = "xenable" ] ; then - sed -i -e 's:smart_DISABLED:enable:g' ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh - fi ;; jessie) cp -v "${DIR}/lib/debian-finish.sh" ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh cp -v "${DIR}/lib/flash_kernel/all.db" ${TEMPDIR}/initrd-tree/etc/all.db neuter_flash_kernel - if [ "x${conf_smart_uboot}" = "xenable" ] ; then - sed -i -e 's:smart_DISABLED:enable:g' ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh - fi ;; esac + if [ "x${conf_smart_uboot}" = "xenable" ] ; then + sed -i -e 's:smart_DISABLED:enable:g' ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh + fi + finish_installing_device setup_parition_recipe cp -v "${DIR}/lib/shared/zz-uenv_txt" ${TEMPDIR}/initrd-tree/zz-uenv_txt