diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-06 16:36:16 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-06 16:36:16 +0000 |
commit | c4b9bd13292f10884ad96854b79b1d22251bd1e7 (patch) | |
tree | 25eca358bf73c213f132526e1b0e36cb1a684b93 /contrib/image-convert/tar2jffs | |
parent | 6b9c2ffba4d6d8dc85d3667c76af92a8cf53eacf (diff) |
contrib/image-convert: Add scripts to convert FS images to different formats.
* Per RFC on the list.
Diffstat (limited to 'contrib/image-convert/tar2jffs')
-rwxr-xr-x | contrib/image-convert/tar2jffs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/image-convert/tar2jffs b/contrib/image-convert/tar2jffs new file mode 100755 index 0000000000..7bf158e4a5 --- /dev/null +++ b/contrib/image-convert/tar2jffs @@ -0,0 +1,8 @@ +#!/bin/sh + +STAGING= #~/linux-ppc/build-oe-angstrom/tmp/staging/i686-linux/bin/ + +${STAGING}fakeroot bash -c " \ +rm -rf scratch; mkdir scratch; \ +tar -xj -f $1 -C scratch; \ +${STAGING}mkfs.jffs2 -x lzo --root=scratch --faketime --output=$(dirname $1)/$(basename $1 .tar.bz2).jffs2" |