treewide: sysupgrade: don't use $ARGV in platform_do_upgrade()

stage2 passes image path to platform_do_upgrade() as an argument so it
can be simply accessed using $1

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 8b4bc7abe0)
[rmilecki: dropping ARGV without this change broke sysupgrade]
Fixes: 6ac62c4b6c ("base-files: don't set ARGV and ARGC")
This commit is contained in:
Rafał Miłecki
2019-07-14 19:03:19 +02:00
parent 986c706cd1
commit 5ae87c76b7
15 changed files with 43 additions and 43 deletions

View File

@@ -19,7 +19,7 @@ platform_do_upgrade() {
case "$board" in
dlink,dir-685)
PART_NAME=firmware
default_do_upgrade "$ARGV"
default_do_upgrade "$1"
;;
esac
}