|
|
@ -11,6 +11,17 @@ fi
|
|
|
|
UNIQUEID=$(date "+%s%N")
|
|
|
|
UNIQUEID=$(date "+%s%N")
|
|
|
|
DEVICETYPE=$(bitdevice $1)
|
|
|
|
DEVICETYPE=$(bitdevice $1)
|
|
|
|
SVFFILE=/tmp/${UNIQUEID}.svf
|
|
|
|
SVFFILE=/tmp/${UNIQUEID}.svf
|
|
|
|
|
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
bit2svf $1 $SVFFILE $DEVICETYPE
|
|
|
|
bit2svf $1 $SVFFILE $DEVICETYPE
|
|
|
|
|
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|
|
|
|
|
rm -f $SVFFILE
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
xsvf-rpi -v -s $SVFFILE
|
|
|
|
xsvf-rpi -v -s $SVFFILE
|
|
|
|
|
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|
|
|
|
|
rm $SVFFILE
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
rm $SVFFILE
|
|
|
|
rm $SVFFILE
|
|
|
|