[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/deluge/Blink burn, 1.2, 1.3

Razvan Musaloiu-E. razvanm at users.sourceforge.net
Fri Jun 8 09:52:15 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/deluge/Blink
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14082/apps/tests/deluge/Blink

Modified Files:
	burn 
Log Message:
Search for tos-deluge in PATH first (patch from Aurelien Francillon).


Index: burn
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/deluge/Blink/burn,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** burn	2 Jun 2007 00:09:14 -0000	1.2
--- burn	8 Jun 2007 16:52:12 -0000	1.3
***************
*** 1,4 ****
--- 1,11 ----
  #!/bin/bash
  
+ TOS_DELUGE=`type -p tos-deluge`
+ if [[ ! -x ${TOS_DELUGE} ]] ; then 
+     TOS_DELUGE=../../../../tools/tinyos/misc/tos-deluge
+ fi 
+ 
+ echo ${TOS_DELUGE}
+ 
  if [ $# -ne 2 ]; then
    echo "Usage: $0 <port> <platform>"
***************
*** 31,36 ****
  
  echo ==================== Upload the image ====================
! ../../../../tools/tinyos/misc/tos-deluge $PORT $PLATFORM -i 0 build/$PLATFORM/tos_image.xml
  
  echo ==================== Reboot ====================
! ../../../../tools/tinyos/misc/tos-deluge $PORT $PLATFORM -r 0 
--- 38,43 ----
  
  echo ==================== Upload the image ====================
! ${TOS_DELUGE} $PORT $PLATFORM -i 0 build/$PLATFORM/tos_image.xml
  
  echo ==================== Reboot ====================
! ${TOS_DELUGE} $PORT $PLATFORM -r 0 



More information about the Tinyos-2-commits mailing list