Bugfix: filename
@@ -4,13 +4,14 @@ if [ "$PLATFORM" == "" ]; then
echo Call with $0 platform where platform is 0w, 3 or 4
exit 1
fi
+
TS=`date +%Y%m%d`
cd `dirname $0`
MYDIR=`pwd`
echo $MYDIR
cp ../buildroot/output/images/sdcard.img images/hifiberryos-$TS-pi$PLATFORM.img
pushd images
-zip hifiberryos-pi$i.zip hifiberryos-$TS-pi$PLATFORM.img
+zip hifiberryos-pi$PLATFORM.zip hifiberryos-$TS-pi$PLATFORM.img
popd
TMPDIR=/tmp/$$
mkdir $TMPDIR
@@ -18,6 +19,6 @@ cp ../buildroot/output/images/zImage ../buildroot/output/images/rootfs.ext2 $TMP
pushd $TMPDIR
pwd
ls
-tar cvfz $MYDIR/images/updater-$TS-pi$i.tar.gz zImage rootfs.ext2
+tar cvfz $MYDIR/images/updater-$TS-pi$PLATFORM.tar.gz zImage rootfs.ext2
popd
rm -rf $TMPDIR
