aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
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/ramips/base-files/lib
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/ramips/base-files/lib')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 4eaaffe029..ae7a72c649 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -15,7 +15,7 @@ platform_nand_pre_upgrade() {
case "$board" in
ubiquiti,edgerouterx|\
ubiquiti,edgerouterx-sfp)
- platform_upgrade_ubnt_erx "$ARGV"
+ platform_upgrade_ubnt_erx "$1"
;;
esac
}
@@ -39,14 +39,14 @@ platform_do_upgrade() {
ubiquiti,edgerouterx-sfp|\
xiaomi,mir3g|\
xiaomi,mir3p)
- nand_do_upgrade "$ARGV"
+ nand_do_upgrade "$1"
;;
tplink,archer-c50-v4)
MTD_ARGS="-t romfile"
- default_do_upgrade "$ARGV"
+ default_do_upgrade "$1"
;;
*)
- default_do_upgrade "$ARGV"
+ default_do_upgrade "$1"
;;
esac
}