program.sh 403 B

12345678910111213141516
  1. #!/bin/bash
  2. #program project hex file to mchpusb using pk2cmd (linux)
  3. PROJ=FraiseMaster2.1.2
  4. FSUSB=fsusb
  5. if [ x$1 == xold ]; then HEXFILE=oldPiedUsb.hex
  6. else HEXFILE=PiedUsb.hex
  7. fi
  8. #HEXFILE=${PROJ}.X/dist/default/production/${PROJ}.X.production.hex
  9. if [ ! -f $HEXFILE ] ; then echo "ERROR : " $HEXFILE "doesn't exist... exiting."; exit ;fi
  10. echo Using hex file : $HEXFILE
  11. ${FSUSB} --program $HEXFILE