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