orion: sysupgrade: change platform_check_image() args validation
authorRafał Miłecki <rafal@milecki.pl>
Sun, 14 Jul 2019 20:11:40 +0000 (22:11 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 16 Jul 2019 11:58:26 +0000 (13:58 +0200)
commitbf4eef46b45932c9ec1ea9ed9f2b4dc64062e7f9
treeaa889e41fb74c3af40609b2d4e7eab8c0411fc46
parent670ce65a44db4263ee21a3fce962c47378ef042b
orion: sysupgrade: change platform_check_image() args validation

sysupgrade passes image to check as argument so use $# instead of $ARGC.
It also fits this function better as it checks $1 and not $ARGV.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/orion/generic/base-files/lib/upgrade/platform.sh