2011-12-25 17:40:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
dev=$1
|
2012-01-03 01:15:10 +00:00
|
|
|
port=$2
|
2011-12-25 17:40:32 +00:00
|
|
|
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
|
2012-01-03 01:15:10 +00:00
|
|
|
#mkdosfs -I /dev/$dev
|
2011-12-25 17:40:32 +00:00
|
|
|
./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
|
|
|
|
|
2012-01-03 01:15:10 +00:00
|
|
|
#echo -n "$port" >$dir/$dev/NICK.CFG
|
|
|
|
## d
|
|
|
|
#echo 0300000f011e00000e0001ff0001ff8f000000 |xxd -r -p >$dir/$dev/R0KET.CFG
|
|
|
|
|
2011-12-25 17:40:32 +00:00
|
|
|
umount /dev/$dev
|
2012-01-03 01:15:10 +00:00
|
|
|
echo "MASS done: $dev @ $port"
|