diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-04-25 12:09:51 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-04-25 12:09:51 +0200 |
commit | 73fcbbfdf678b46f46633c2741f5e5971b788366 (patch) | |
tree | ac4ef89c5b480ab6bca030123dd9a6ad995ef3f0 | |
parent | a9efa86e951f2b6c1a019ac01b8d68a6f43c720e (diff) | |
download | device_goldelico_gta04-73fcbbfdf678b46f46633c2741f5e5971b788366.zip device_goldelico_gta04-73fcbbfdf678b46f46633c2741f5e5971b788366.tar.gz device_goldelico_gta04-73fcbbfdf678b46f46633c2741f5e5971b788366.tar.bz2 |
replicant_gta04_install.sh: Install boot files from bootloader zip
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rwxr-xr-x | replicant_gta04_install.sh | 9 |
1 files 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" |