#!/bin/bash
|
|
|
|
#one
|
|
#cat /dev/ttyUSB0 > /home/dev/arduswitch &
|
|
|
|
|
|
#two
|
|
#if cat /home/dev/arduswitch == User Pressed button 0
|
|
# then
|
|
# do something
|
|
# echo "" > /home/dev/arduswitch (to truncate)
|
|
|
|
# etc
|