aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
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-07-17 08:05:38 +0200
commit8b4bc7abe073489a3595eeb2d81818852319c148 (patch)
tree34a2b388aba0e1235718f21d03671b4682ec5248 /target/linux/ar71xx
parentd9593b0809e42e9d75cc3ac4407ec30faaf70b15 (diff)
downloadupstream-8b4bc7abe073489a3595eeb2d81818852319c148.tar.gz
upstream-8b4bc7abe073489a3595eeb2d81818852319c148.tar.bz2
upstream-8b4bc7abe073489a3595eeb2d81818852319c148.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>
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/base-files/lib/upgrade/dir825.sh4
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh18
2 files changed, 11 insertions, 11 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/dir825.sh b/target/linux/ar71xx/base-files/lib/upgrade/dir825.sh
index 7ad3dd8e1f..430df251a0 100644
--- a/target/linux/ar71xx/base-files/lib/upgrade/dir825.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/dir825.sh
@@ -148,7 +148,7 @@ platform_do_upgrade_dir825b() {
else
PART_NAME="firmware"
fi
- default_do_upgrade "$ARGV"
+ default_do_upgrade "$1"
;;
"43493030")
if [ -z "$fw_mtd" ]; then
@@ -159,7 +159,7 @@ platform_do_upgrade_dir825b() {
exit 1
}
fi
- dir825b_do_upgrade_combined "firmware" "$ARGV"
+ dir825b_do_upgrade_combined "firmware" "$1"
;;
esac
}
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index c0f383b4e3..5de7af667f 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -806,7 +806,7 @@ platform_do_upgrade() {
case "$board" in
all0258n)
- platform_do_upgrade_allnet "0x9f050000" "$ARGV"
+ platform_do_upgrade_allnet "0x9f050000" "$1"
;;
all0305|\
eap7660d|\
@@ -818,19 +818,19 @@ platform_do_upgrade() {
pb44|\
routerstation|\
routerstation-pro)
- platform_do_upgrade_combined "$ARGV"
+ platform_do_upgrade_combined "$1"
;;
all0315n)
- platform_do_upgrade_allnet "0x9f080000" "$ARGV"
+ platform_do_upgrade_allnet "0x9f080000" "$1"
;;
cap4200ag|\
eap300v2|\
ens202ext)
- platform_do_upgrade_allnet "0xbf0a0000" "$ARGV"
+ platform_do_upgrade_allnet "0xbf0a0000" "$1"
;;
dir-825-b1|\
tew-673gru)
- platform_do_upgrade_dir825b "$ARGV"
+ platform_do_upgrade_dir825b "$1"
;;
a40|\
a60|\
@@ -852,7 +852,7 @@ platform_do_upgrade() {
om5p-ac|\
om5p-acv2|\
om5p-an)
- platform_do_upgrade_openmesh "$ARGV"
+ platform_do_upgrade_openmesh "$1"
;;
c-60|\
hiveap-121|\
@@ -903,14 +903,14 @@ platform_do_upgrade() {
uap-pro|\
unifi-outdoor-plus)
MTD_CONFIG_ARGS="-s 0x180000"
- default_do_upgrade "$ARGV"
+ default_do_upgrade "$1"
;;
wp543|\
wpe72)
- platform_do_upgrade_compex "$ARGV"
+ platform_do_upgrade_compex "$1"
;;
*)
- default_do_upgrade "$ARGV"
+ default_do_upgrade "$1"
;;
esac
}