From 73fcbbfdf678b46f46633c2741f5e5971b788366 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Fri, 25 Apr 2014 12:09:51 +0200 Subject: replicant_gta04_install.sh: Install boot files from bootloader zip Signed-off-by: Paul Kocialkowski --- replicant_gta04_install.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/replicant_gta04_install.sh b/replicant_gta04_install.sh index 9d1f41d..1f4cf71 100755 --- a/replicant_gta04_install.sh +++ b/replicant_gta04_install.sh @@ -34,7 +34,7 @@ DRIVE_CYLINDERS="" DRIVE_PART="" SYSTEM_ZIP="replicant-4.2-gta04.zip" -BOOT_FILES="MLO u-boot.bin boot.scr splash.rgb16z recovery.img" +BOOTLOADER_ZIP="bootloader.zip" FILES_BASE="." MOUNT_BASE="/media" @@ -49,7 +49,7 @@ display_help() { echo "Usage: $0 [COMMAND] [DRIVE]" echo "" echo "It is expected that the following files are located in $FILES_BASE:" - echo " $BOOT_FILES for setup" + echo " $BOOTLOADER_ZIP for setup" echo " $SYSTEM_ZIP for install" echo "" echo "Commands:" @@ -254,10 +254,7 @@ setup_boot_install() { mkdir -p "$MOUNT_BASE/boot" mount "${DRIVE_PART}1" "$MOUNT_BASE/boot" - for file in $BOOT_FILES - do - cp "$FILES_BASE/$file" "$MOUNT_BASE/boot/" - done + unzip -o "$FILES_BASE/$BOOTLOADER_ZIP" "**" -d "$MOUNT_BASE/boot/" dir=$( pwd ) echo "Syncing boot files" -- cgit v1.1