Author: rmilecki Date: 2015-04-17 08:03:00 +0200 (Fri, 17 Apr 2015) New Revision: 45473
Modified: trunk/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh Log: bcm53xx: fix handling absolute paths in sysupgrade (for vendor formats) Signed-off-by: Rafa?\197?\130 Mi?\197?\130ecki <[email protected]> Modified: trunk/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh =================================================================== --- trunk/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh 2015-04-17 05:45:46 UTC (rev 45472) +++ trunk/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh 2015-04-17 06:03:00 UTC (rev 45473) @@ -133,8 +133,8 @@ # Extract trx 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 # Extract partitions from trx @@ -178,8 +178,8 @@ } 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 _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
