Last active
January 22, 2016 13:07
-
-
Save gogoprog/2304b81d55fda0cba312 to your computer and use it in GitHub Desktop.
Script to automatically update the software on a mbed device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MBED="/run/media/gogoprog/MBED" | |
BIN_LOCATION="/home/gogoprog/Downloads" | |
while [ true ] | |
do | |
stat -t ${BIN_LOCATION}/*.bin >/dev/null 2>&1 && mv ${BIN_LOCATION}/*.bin ${MBED}/ && echo -n "Bin updated @ " && date | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment