mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
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 commit76e43c82b5
) [rmilecki: dropping ARGV without this change broke sysupgrade] Fixes:6ac62c4b6c
("base-files: don't set ARGV and ARGC")
This commit is contained in:
parent
5ae87c76b7
commit
15292501a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user