Bash script to run on Raspberry Pi