aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-07-14 19:03:19 +0200
committerRafał Miłecki <rafal@milecki.pl>2019-09-07 14:31:16 +0200
commit5ae87c76b7fb2fb6e3c5ac5f4219ea652def092a (patch)
treee5d365054d793e5681f8f60c7db3027a6928a6c5 /target/linux/apm821xx
parent986c706cd1e67974d59fa73de6f0e1d1ea1e4830 (diff)
downloadupstream-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/apm821xx')
-rwxr-xr-xtarget/linux/apm821xx/base-files/lib/upgrade/platform.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/apm821xx/base-files/lib/upgrade/platform.sh b/target/linux/apm821xx/base-files/lib/upgrade/platform.sh
index 02c750130c..32e87513f3 100755
--- a/target/linux/apm821xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/apm821xx/base-files/lib/upgrade/platform.sh
@@ -22,7 +22,7 @@ platform_do_upgrade() {
case "$board" in
wd,mybooklive)
- mbl_do_upgrade "$ARGV"
+ mbl_do_upgrade "$1"
;;
meraki,mr24|\
meraki,mx60|\
@@ -32,7 +32,7 @@ platform_do_upgrade() {
nand_do_upgrade "$1"
;;
*)
- default_do_upgrade "$ARGV"
+ default_do_upgrade "$1"
;;
esac
}