gen_tix
457 Bytes
#!/bin/bash
#
# generate tickets tied to specific BBIDs
#
# gen_tix <filename of bbid list>
#
if [ $# -ne 1 ]; then
echo Syntax: $0 bbid_list_file
exit 1
fi
list=$1
if [ ! -f $list ]; then
echo $list: not found
exit 1
fi
while read bbid; do
echo Generate ticket for $bbid
../boot/bundleBootapp -r 0xffffffff -R 0xffffffff -b $bbid rom devmon.aes.$bbid devmon.tik.$bbid
cat sk_bpki.aes devmon.tik.$bbid devmon.aes.$bbid > sksa.$bbid
done < $list