diff options
author | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2009-06-10 22:34:14 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2009-06-10 22:34:14 +0000 |
commit | f4a81139b7b41f8ad15ca17bbf63f46cc82df091 (patch) | |
tree | e6e14fdb234a1e37488906b1bf0cfe7b27a7296d /package/base-files | |
parent | 57d7cc766694adc0a855ef9283119962233ca677 (diff) | |
download | mtk-20170518-f4a81139b7b41f8ad15ca17bbf63f46cc82df091.zip mtk-20170518-f4a81139b7b41f8ad15ca17bbf63f46cc82df091.tar.gz mtk-20170518-f4a81139b7b41f8ad15ca17bbf63f46cc82df091.tar.bz2 |
base-files: Add support for bzipped images in sysupgrade
SVN-Revision: 16408
Diffstat (limited to 'package/base-files')
-rw-r--r-- | package/base-files/files/lib/upgrade/common.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 018cc72..d0ae8fe 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 /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() { # <source> [ <command> ] 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 |