Rename cleanUpProgram() to endChild() and add kill ability
[remote/remote-mci.git] / contrib / cit / bootloaders / micaz.init
blobe8d1ca7176f1a16b6f1bb5d03f5c784887026032
1 #!/bin/sh
3 # MicaZ + MIB520 - testbed utils
6 reset() {
7 uisp -dprog=mib510 -dserial=/dev/ttyUSB1 -dpart=ATmega128 --restart
10 start() {
11 uisp -dprog=mib510 -dserial=/dev/ttyUSB1 -dpart=ATmega128 --start
14 stop() {
15 uisp -dprog=mib510 -dserial=/dev/ttyUSB1 -dpart=ATmega128 --stop
18 case "$*" in
19 reset)
20 reset
22 start)
23 start
25 stop)
26 stop
29 echo "Usage: $0 {reset|start|stop of MicaZ}"
30 exit 1
31 esac
33 if [ "$error" ];then
34 exit $error
37 #exit $?