Hello, awk and hexdump seem to be missing from ramfs during sysupgrade.
Signed-off-by: Frédéric Moulins <[EMAIL PROTECTED]>
---
It would be a good thing to check free space in ram before copying
files. If not, the system will run out of memory, hang and
hopefully get rebooted by a watchdog.
diff --git a/package/base-files/files/lib/upgrade/common.sh
b/package/base-files/files/lib/upgrade/common.sh
index f0d0c20..b3115e9 100644
--- a/package/base-files/files/lib/upgrade/common.sh
+++ b/package/base-files/files/lib/upgrade/common.sh
@@ -45,7 +45,7 @@ pivot() { # <new_root> <old_root>
}
run_ramfs() { # <command> [...]
- install_bin /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount
/sbin/pivot_root /usr/bin/wget /sbin/reboot /bin/sync /bin/dd /bin/grep /bin/cp
/bin/mv /bin/tar /usr/bin/md5sum "/usr/bin/[" /bin/vi /bin/ls /bin/cat
+ install_bin /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount
/sbin/pivot_root /usr/bin/wget /sbin/reboot /bin/sync /bin/dd /bin/grep /bin/cp
/bin/mv /bin/tar /usr/bin/md5sum "/usr/bin/[" /bin/vi /bin/ls /bin/cat
/usr/bin/awk /usr/bin/hexdump
install_bin /sbin/mtd
for file in $RAMFS_COPY_BIN; do
install_bin $file
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel