From 1af5d9c46f44c326b357bbf7ac1fb8ae0466656a Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Mon, 20 Jun 2022 21:52:54 +0200 Subject: [PATCH] fix: fixes install error if config.txt missing This should fix install error if used OS has no config.txt, like Raspberry PiOS has. Signed-off-by: Stephan Wendel --- tools/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 280050e..90e4dab 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -370,7 +370,8 @@ if [ "${UNATTENDED}" != "true" ] && [ "${CROWSNEST_FORCE_RASPICAMFIX}" != "0" ]; then install_raspicam_fix fi -if [ "$(get_os_version bullseye)" != "0" ]; then +if [ "$(get_os_version bullseye)" != "0" ] && +[ -f "/boot/config.txt" ]; then enable_legacy_cam fi goodbye_msg