Created
August 8, 2018 15:30
-
-
Save wormyrocks/b4443cfd8215aedd9488c6a2f5135317 to your computer and use it in GitHub Desktop.
This file contains 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 | |
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