projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: fix return statement in the rtl8366 driver
[openwrt.git]
/
scripts
/
combined-image.sh
diff --git
a/scripts/combined-image.sh
b/scripts/combined-image.sh
index
eecd3d7
..
5472b2c
100644
(file)
--- a/
scripts/combined-image.sh
+++ b/
scripts/combined-image.sh
@@
-7,9
+7,11
@@
BLKSZ=65536
exit 1
}
exit 1
}
+IMAGE=${3:-openwrt-combined.img}
+
# Make sure provided images are 64k aligned.
# Make sure provided images are 64k aligned.
-kern=
$(tempfile)
-root=
$(tempfile)
+kern=
"${IMAGE}.kernel"
+root=
"${IMAGE}.rootfs"
dd if="$1" of="$kern" bs=$BLKSZ conv=sync 2>/dev/null
dd if="$2" of="$root" bs=$BLKSZ conv=sync 2>/dev/null
dd if="$1" of="$kern" bs=$BLKSZ conv=sync 2>/dev/null
dd if="$2" of="$root" bs=$BLKSZ conv=sync 2>/dev/null
@@
-26,7
+28,7
@@
md5=$(cat "$kern" "$root" | md5sum -)
$(stat -c "%s" "$kern") $(stat -c "%s" "$root") "${md5%% *}" | \
dd bs=$BLKSZ conv=sync;
cat "$kern" "$root"
$(stat -c "%s" "$kern") $(stat -c "%s" "$root") "${md5%% *}" | \
dd bs=$BLKSZ conv=sync;
cat "$kern" "$root"
-) > ${
3:-openwrt-combined.img
} 2>/dev/null
+) > ${
IMAGE
} 2>/dev/null
# Clean up.
rm -f "$kern" "$root"
# Clean up.
rm -f "$kern" "$root"
This page took
0.021784 seconds
and
4
git commands to generate.