From 023282e7760c57e42498cd56e9692f8a11fd5870 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 10 Aug 2011 01:44:34 -0700 Subject: [PATCH] prepare also the initrd for the SCC --- tools/prepare.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/prepare.sh b/tools/prepare.sh index c94b5104..961cb45e 100755 --- a/tools/prepare.sh +++ b/tools/prepare.sh @@ -9,3 +9,13 @@ if [ $SIZE -ne 0 ]; then else echo not patching $NAME fi; + +NAME=initrd.img +SIZE=`ls -ld "$NAME" | awk '{print $5 % 64}'` +if [ $SIZE -ne 0 ]; then + echo "$NAME: patching $SIZE Zero-Bytes" + dd if=/dev/zero of=zero.bin bs=1 count=$SIZE + cat zero.bin >> $NAME +else + echo not patching $NAME +fi;