Skip to content

Commit

Permalink
projects/Amlogic: update aml_autoscript when upgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Green committed Jun 5, 2018
1 parent 62e706f commit 65d534f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/Amlogic/bootloader/update.sh
Expand Up @@ -131,4 +131,11 @@ if [ -f $SYSTEM_ROOT/usr/share/bootloader/u-boot -a ! -e /dev/system -a ! -e /de
dd if=$SYSTEM_ROOT/usr/share/bootloader/u-boot of=$BOOT_DISK conv=fsync bs=512 skip=1 seek=1 status=none
fi

if [ -f $BOOT_ROOT/aml_autoscript ]; then
if [ -f $SYSTEM_ROOT/usr/share/bootloader/aml_autoscript ]; then
echo "Updating aml_autoscript..."
cp -p $SYSTEM_ROOT/usr/share/bootloader/aml_autoscript $BOOT_ROOT
fi
fi

mount -o ro,remount $BOOT_ROOT

0 comments on commit 65d534f

Please sign in to comment.