Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup: bullseye has problems to detect cameras - workaround #827

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion allsky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ ps -ef | grep allsky.sh | grep -v $$ | xargs "sudo kill -9" 2>/dev/null
# old/regular manual camera selection mode => exit if no requested camera was found
# Buster and Bullseye have different output so only check the part they have in common.
# TODO: this check only needs to be done if CAMERA = RPiHQ
vcgencmd get_camera | grep --silent "supported=1"
# vcgencmd get_camera | grep --silent "supported=1"
# bullseye has problems to dedect cameras - workaround
which libcamera-still
if [ $? -eq 0 ]; then
libcamera-still -v -t 1
else
vcgencmd get_camera | grep --silent "supported=1"
fi

if [ $? -eq 0 ]; then
RPiHQIsPresent=1
else
Expand Down