From faf0f1598f43a4778b6d48f6661266cbbcea80a5 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 21 Nov 2011 14:57:07 -0600 Subject: [PATCH] cleanup: combine netinstall functions Signed-off-by: Robert Nelson --- mk_mmc.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index cc5150b..d8fa735 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -698,6 +698,14 @@ esac cd ${DIR}/ } +function create_custom_netinstall_image { + echo "" + echo "Creating Custom NetInstall Image" + echo "-----------------------------" + prepare_initrd + prepare_uimage +} + function unmount_all_drive_partitions { echo "" echo "Unmounting Partitions" @@ -1364,10 +1372,10 @@ fi if [ "${FIRMWARE}" ] ; then dl_firmware fi + setup_bootscripts + create_custom_netinstall_image - prepare_initrd - prepare_uimage unmount_all_drive_partitions create_partitions reset_scripts