platform_do_upgrade should not call find_mtd_part which uses awk and 
hexdump. Those two binaries are not included during run_ramfs.

Let's export  a variable during sysupgrade_pre_upgrade containing the
good partition.


Signed-off-by: Frédéric Moulins <[EMAIL PROTECTED]>

---

So there is no need for awk and hexdump during run_ramfs.

diff --git a/target/linux/brcm-2.4/base-files/lib/upgrade/platform.sh 
b/target/linux/brcm-2.4/base-files/lib/upgrade/platform.sh
--- a/target/linux/brcm-2.4/base-files/lib/upgrade/platform.sh
+++ b/target/linux/brcm-2.4/base-files/lib/upgrade/platform.sh
@@ -14,11 +14,12 @@
 }
 
 platform_do_upgrade() {
-       get_image "$1" > $(find_mtd_part "linux")
+       get_image "$1" > $UPGRADE_PARTITION
        sync
 }
 
 brcm_prepare_mtd() {
+       export UPGRADE_PARTITION=$(find_mtd_part "linux")
        [ "$SAVE_CONFIG" -eq 1 ] && return 0
 }
 append sysupgrade_pre_upgrade brcm_prepare_mtd
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to