diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-07-14 19:03:19 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-09-07 14:31:16 +0200 |
commit | 5ae87c76b7fb2fb6e3c5ac5f4219ea652def092a (patch) | |
tree | e5d365054d793e5681f8f60c7db3027a6928a6c5 /target/linux/ipq40xx/base-files | |
parent | 986c706cd1e67974d59fa73de6f0e1d1ea1e4830 (diff) | |
download | upstream-5ae87c76b7fb2fb6e3c5ac5f4219ea652def092a.tar.gz upstream-5ae87c76b7fb2fb6e3c5ac5f4219ea652def092a.tar.bz2 upstream-5ae87c76b7fb2fb6e3c5ac5f4219ea652def092a.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>
(cherry picked from commit 8b4bc7abe073489a3595eeb2d81818852319c148)
[rmilecki: dropping ARGV without this change broke sysupgrade]
Fixes: 6ac62c4b6cae ("base-files: don't set ARGV and ARGC")
Diffstat (limited to 'target/linux/ipq40xx/base-files')
-rw-r--r-- | target/linux/ipq40xx/base-files/lib/upgrade/platform.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh index fffef2c89e..7a34e6c1d0 100644 --- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh @@ -51,7 +51,7 @@ platform_do_upgrade() { avm,fritzbox-7530 |\ avm,fritzrepeater-3000 |\ qxwlan,e2600ac-c2) - nand_do_upgrade "$ARGV" + nand_do_upgrade "$1" ;; asus,map-ac2200) CI_KERNPART="linux" @@ -64,7 +64,7 @@ platform_do_upgrade() { ;; linksys,ea6350v3 |\ linksys,ea8300) - platform_do_upgrade_linksys "$ARGV" + platform_do_upgrade_linksys "$1" ;; meraki,mr33) CI_KERNPART="part.safe" @@ -73,13 +73,13 @@ platform_do_upgrade() { openmesh,a42 |\ openmesh,a62) PART_NAME="inactive" - platform_do_upgrade_openmesh "$ARGV" + platform_do_upgrade_openmesh "$1" ;; zyxel,nbg6617) zyxel_do_upgrade "$1" ;; *) - default_do_upgrade "$ARGV" + default_do_upgrade "$1" ;; esac } |