From: Vasilis Tsiligiannis Date: Wed, 10 Jun 2009 22:34:14 +0000 (+0000) Subject: base-files: Add support for bzipped images in sysupgrade X-Git-Tag: reboot~23226 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f4a81139b7b41f8ad15ca17bbf63f46cc82df091;p=openwrt%2Fstaging%2Flynxis.git base-files: Add support for bzipped images in sysupgrade SVN-Revision: 16408 --- diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 018cc72f47..d0ae8fef5b 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -45,7 +45,7 @@ pivot() { # } run_ramfs() { # [...] - 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 + 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 /sbin/mtd for file in $RAMFS_COPY_BIN; do install_bin $file @@ -116,6 +116,7 @@ get_image() { # [ ] local magic="$(eval $cmd $from | dd bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')" case "$magic" in 1f8b) conc="| zcat";; + 425a) conc="| bzcat";; esac fi