summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xreplicant_gta04_install.sh9
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"