From 6b8a4c98cca21896562bf2434fbf416e2838d5da Mon Sep 17 00:00:00 2001 From: EricClaeys <83164203+EricClaeys@users.noreply.github.com> Date: Sun, 17 Oct 2021 00:12:07 -0500 Subject: [PATCH] config.sh.repo - no longer allow "auto" --- config_repo/config.sh.repo | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config_repo/config.sh.repo b/config_repo/config.sh.repo index 5e21ccdea..da8cfe2dc 100644 --- a/config_repo/config.sh.repo +++ b/config_repo/config.sh.repo @@ -6,7 +6,7 @@ # - Values can optionally be quoted with double quotes, NOT single quotes. # - If a variable occurs multiple times, only the last value is used. -# Choose between "ZWO", "RPiHQ", or "auto". "auto" prefers ZWO if present. +# Choose between "ZWO" or "RPiHQ". Note that "auto" is no longer allowed. CAMERA="" @@ -160,7 +160,10 @@ UHUBCTL_PORT=2 CAMERA_SETTINGS_DIR="${ALLSKY_CONFIG}" if [ "${CAMERA}" = "" ]; then - echo "${RED}ERROR: Please set CAMERA in config.sh${NC}" + echo "${RED}ERROR: Please set CAMERA in config/config.sh${NC}" + exit 1 +elif [ "${CAMERA}" = "auto" ]; then + echo "${RED}ERROR: 'auto' is no longer a valid CAMERA type. Please reset CAMERA in config/config.sh${NC}" exit 1 fi