Skip to content

Instantly share code, notes, and snippets.

@wormyrocks
Created August 8, 2018 15:30
Show Gist options
  • Save wormyrocks/b4443cfd8215aedd9488c6a2f5135317 to your computer and use it in GitHub Desktop.
Save wormyrocks/b4443cfd8215aedd9488c6a2f5135317 to your computer and use it in GitHub Desktop.
#!/bin/bash
file="/media/pi/LKG/LKG_Calibration/visual.json"
if [ `find /dev -name sd*[0-9] | wc -l` -eq 0 ]
then
echo ""
else
for f in /dev/sd*[0-9];
do
mount $f /media/pi/LKG
if [ -f "$file" ]
then
cat $file
else
echo ""
fi
umount $f
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment