diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-04-17 05:45:46 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-04-17 05:45:46 +0000 |
commit | 491e568849f2db3f87b4f0890901c3a2fb1aef68 (patch) | |
tree | 458407869fac49c19b7c51a4c20f22205d46510c /target/linux/brcm47xx | |
parent | c1bf2d22df1d5e09af60ff115cfcc0126bff79de (diff) | |
download | upstream-491e568849f2db3f87b4f0890901c3a2fb1aef68.tar.gz upstream-491e568849f2db3f87b4f0890901c3a2fb1aef68.tar.bz2 upstream-491e568849f2db3f87b4f0890901c3a2fb1aef68.zip |
brcm47xx: fix handling absolute paths in sysupgrade (for vendor formats)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45472 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx')
-rw-r--r-- | target/linux/brcm47xx/base-files/lib/upgrade/platform.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh index 0fc0388f6d..a346933f9a 100644 --- a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh @@ -148,8 +148,8 @@ platform_do_upgrade() { local trx="$1" case "$file_type" in - "chk") trx="/tmp/$1.trx"; platform_extract_trx_from_chk "$1" "$trx";; - "cybertan") trx="/tmp/$1.trx"; platform_extract_trx_from_cybertan "$1" "$trx";; + "chk") trx="/tmp/$(basename $1).trx"; platform_extract_trx_from_chk "$1" "$trx";; + "cybertan") trx="/tmp/$(basename $1).trx"; platform_extract_trx_from_cybertan "$1" "$trx";; esac shift |