aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-07-14 18:59:59 +0200
committerRafał Miłecki <rafal@milecki.pl>2019-09-07 14:31:45 +0200
commit15292501a1a9ca979b7b92d5187a7b095fe3af66 (patch)
treea3964cb86a79b02ba44851e24e30e8b2ab78dfbd
parent5ae87c76b7fb2fb6e3c5ac5f4219ea652def092a (diff)
downloadupstream-15292501a1a9ca979b7b92d5187a7b095fe3af66.tar.gz
upstream-15292501a1a9ca979b7b92d5187a7b095fe3af66.tar.bz2
upstream-15292501a1a9ca979b7b92d5187a7b095fe3af66.zip
mvebu: sysupgrade: don't use $ARGV in platform_check_image()
sysupgrade passes image path to platform_check_image() as an argument so it can be simply accessed using $1 Signed-off-by: Rafał Miłecki <rafal@milecki.pl> (cherry picked from commit 76e43c82b55518b794ac24f9acfb3888c638f99b) [rmilecki: dropping ARGV without this change broke sysupgrade] Fixes: 6ac62c4b6cae ("base-files: don't set ARGV and ARGC")
-rwxr-xr-xtarget/linux/mvebu/base-files/lib/upgrade/platform.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/mvebu/base-files/lib/upgrade/platform.sh b/target/linux/mvebu/base-files/lib/upgrade/platform.sh
index 981fa2aa2e..58e7d83e4e 100755
--- a/target/linux/mvebu/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mvebu/base-files/lib/upgrade/platform.sh
@@ -11,7 +11,7 @@ platform_check_image() {
case "$(board_name)" in
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_check_image_sdcard "$ARGV"
+ platform_check_image_sdcard "$1"
;;
*)
return 0