Even when we don't encrypt a mi4 we still need to run the encrypt step so that the crc gets updated.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10812 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2006-08-30 20:20:52 +00:00
parent 4063e47f03
commit e4e4219302

View file

@ -48,7 +48,7 @@ findtool(){
}
help () {
echo "Usage: mi4fix.sh <e200/h10/h10_5gb> <input> <output>"
echo "Usage: mi4fix.sh <e200/h10/h10_5gb/elio> <input> <output>"
exit
}
@ -75,6 +75,9 @@ case $target in
h10_5gb)
buildopt="-2"
;;
elio)
buildopt="-2"
;;
*)
echo "unsupported target"
help
@ -108,7 +111,8 @@ if test -n "$encrypt"; then
#echo "$tool encrypt $output.raw $output.encrypt $tea"
$tool encrypt $output.raw $output.encrypt $tea
else
mv $output.raw $output.encrypt
# Even if we don't encrypt we need to do this to ensure the crc gets fixed
$tool encrypt -pall $output.raw $output.encrypt default
fi
# sign
if test -n "$sign"; then