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 | |
dt=`vcgencmd get_camera | grep "detected=1"` | |
if [ "$dt" = "" ]; then | |
echo "no camera detected" | |
else | |
if [ "`which i2cdetect`" = "" ]; then | |
echo "i2cdetect not installed" ; exit | |
fi | |
cd `dirname $0` | |
if [[ ! -a camera_i2c ]]; then |