Include busybox symlinks in the ramdisk for /usr/bin/printf and /usr/bin/which as well as /bin/stat (if available). Also include uboot-envtools if we got them installed. This is needed to write checksums and sizes to uboot-env during sysupgrade.
Signed-off-by: Daniel Golle <dgo...@allnet.de> Index: package/base-files/files/lib/upgrade/common.sh =================================================================== --- package/base-files/files/lib/upgrade/common.sh (revision 28191) +++ package/base-files/files/lib/upgrade/common.sh (working copy) @@ -48,8 +48,10 @@ } 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 /usr/bin/awk /usr/bin/hexdump /bin/sleep /bin/zcat /usr/bin/bzcat + 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 /bin/sleep /bin/zcat /usr/bin/bzcat /usr/bin/which /usr/bin/printf $( [ -e /bin/stat ] && echo /bin/stat ) install_bin /sbin/mtd + [ -e /usr/sbin/fw_printenv ] && install_bin /usr/sbin/fw_printenv /usr/sbin/fw_setenv + for file in $RAMFS_COPY_BIN; do install_bin $file done _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel