diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-07-14 19:03:19 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-07-17 08:05:38 +0200 |
commit | 8b4bc7abe073489a3595eeb2d81818852319c148 (patch) | |
tree | 34a2b388aba0e1235718f21d03671b4682ec5248 /target/linux/mvebu/base-files | |
parent | d9593b0809e42e9d75cc3ac4407ec30faaf70b15 (diff) | |
download | upstream-8b4bc7abe073489a3595eeb2d81818852319c148.tar.gz upstream-8b4bc7abe073489a3595eeb2d81818852319c148.tar.bz2 upstream-8b4bc7abe073489a3595eeb2d81818852319c148.zip |
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>
Diffstat (limited to 'target/linux/mvebu/base-files')
-rwxr-xr-x | target/linux/mvebu/base-files/lib/upgrade/platform.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/mvebu/base-files/lib/upgrade/platform.sh b/target/linux/mvebu/base-files/lib/upgrade/platform.sh index 744ed4f132..981fa2aa2e 100755 --- a/target/linux/mvebu/base-files/lib/upgrade/platform.sh +++ b/target/linux/mvebu/base-files/lib/upgrade/platform.sh @@ -22,14 +22,14 @@ platform_check_image() { platform_do_upgrade() { case "$(board_name)" in linksys,caiman|linksys,cobra|linksys,mamba|linksys,rango|linksys,shelby|linksys,venom) - platform_do_upgrade_linksys "$ARGV" + platform_do_upgrade_linksys "$1" ;; cznic,turris-omnia|globalscale,espressobin|globalscale,espressobin-emmc|globalscale,espressobin-v7|globalscale,espressobin-v7-emmc|\ marvell,armada8040-mcbin|solidrun,clearfog-base-a1|solidrun,clearfog-pro-a1) - platform_do_upgrade_sdcard "$ARGV" + platform_do_upgrade_sdcard "$1" ;; *) - default_do_upgrade "$ARGV" + default_do_upgrade "$1" ;; esac } |