aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2009-06-10 22:34:14 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2009-06-10 22:34:14 +0000
commitf4a81139b7b41f8ad15ca17bbf63f46cc82df091 (patch)
treee6e14fdb234a1e37488906b1bf0cfe7b27a7296d /package
parent57d7cc766694adc0a855ef9283119962233ca677 (diff)
downloadupstream-f4a81139b7b41f8ad15ca17bbf63f46cc82df091.tar.gz
upstream-f4a81139b7b41f8ad15ca17bbf63f46cc82df091.tar.bz2
upstream-f4a81139b7b41f8ad15ca17bbf63f46cc82df091.zip
base-files: Add support for bzipped images in sysupgrade
SVN-Revision: 16408
Diffstat (limited to 'package')
-rw-r--r--package/base-files/files/lib/upgrade/common.sh3
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 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() { # <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