crashtest-r0ket/tools/smartflash/mass

53 lines
725 B
Plaintext
Raw Normal View History

2011-12-25 17:40:32 +00:00
#!/bin/sh
dev=$1
dir=/tmp/r0ket
set -e
if [ ! -d $dir ] ; then
mkdir $dir
fi
if [ ! -d $dir/$dev ] ; then
mkdir $dir/$dev
fi
umount /dev/$dev 2>/dev/null || true
./generate-keys
mount /dev/$dev -t vfat $dir/$dev
2011-12-29 03:10:56 +00:00
perl copy-files-ordered files $dir/$dev \
invaders.c0d \
mandel.c0d \
r_player.c0d \
jump.c0d \
bricks.c0d \
rockets.c0d \
fahrplan.c0d \
r0type.c0d \
beaconid.c0d \
people.c0d \
release.c0d \
starfld.c0d \
static.c0d \
sendcard.c0d \
recvcard.c0d \
showcard.c0d \
pongo.c0d \
minichat.c0d \
blink.c0d \
pwgen.c0d \
showlcd.c0d \
tedliz.c0d \
leiwand.c0d \
scope.c0d \
Geigerct.c0d \
voltage.c0d \
debug.int
2011-12-25 17:40:32 +00:00
#sync
#ls -l $dir/$dev
umount /dev/$dev
echo "MASS done: $dev $dir"