#!/bin/bash

echo "Installing firmware..."
avrdude -c arduino -p m328p -P /dev/usb/ttyACM0 -U flash:w:/usr/local/share/so/arduino.hex

stty -F /dev/usb/ttyACM0 38400 raw intr undef quit undef erase undef \
	kill undef eof undef start undef stop undef susp undef \
	rprnt undef werase undef lnext undef discard undef \
	min 1 time 0 \
	-brkint -icrnl -imaxbel \
	-opost -onlcr \
	-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke \
	-hupcl
