mirror of https://github.com/hak5/openwrt-owl.git
ramips: fix Netgear EX2700 images
Calling `cat foo bar | dd ... conv=sync` *may* add extraneous padding. Avoid this. Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>owl
parent
8b0fbd8e70
commit
065de8bd7a
|
@ -8,9 +8,9 @@ define Build/tplink-header
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/pad-kernel-ex2700
|
define Build/pad-kernel-ex2700
|
||||||
dd if=/dev/zero of=$@.pad bs=64 count=1 && cat $@ $@.pad \
|
cp $@ $@.tmp && dd if=/dev/zero bs=64 count=1 >> $@.tmp \
|
||||||
| dd of=$@.new bs=64k conv=sync && truncate -s -64 $@.new \
|
&& dd if=$@.tmp of=$@.new bs=64k conv=sync && truncate -s -64 $@.new \
|
||||||
&& cat ex2700-fakeroot.uImage >> $@.new && rm $@.pad && mv $@.new $@
|
&& cat ex2700-fakeroot.uImage >> $@.new && rm $@.tmp && mv $@.new $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/netgear-header
|
define Build/netgear-header
|
||||||
|
|
Loading…
Reference in New Issue