Skip to content

Commit

Permalink
Amlogic-ng: fix update error
Browse files Browse the repository at this point in the history
this fixes a corner case error during updating for users updating
from installs where the env partition is not present
  • Loading branch information
adamg88 committed Aug 17, 2019
1 parent bfbd939 commit 958a5d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions projects/Amlogic-ng/bootloader/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ 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
mkdir -p /var/lock
$SYSTEM_ROOT/usr/sbin/fw_setenv -c $SYSTEM_ROOT/etc/fw_env.config upgrade_step 3
[ -e /dev/env ] && mkdir -p /var/lock && $SYSTEM_ROOT/usr/sbin/fw_setenv -c $SYSTEM_ROOT/etc/fw_env.config upgrade_step 3
fi
if [ -f $SYSTEM_ROOT/usr/share/bootloader/${SUBDEVICE}_cfgload ]; then
echo "Updating cfgload..."
Expand Down

0 comments on commit 958a5d6

Please sign in to comment.