From 16939b1f4beae375906ebca06e6033be5565b629 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Thu, 9 Sep 2021 18:24:49 +0200 Subject: [PATCH] make lcd default for displayclass --- build_sdcard.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build_sdcard.sh b/build_sdcard.sh index 4e73d457c..8c99e32e5 100755 --- a/build_sdcard.sh +++ b/build_sdcard.sh @@ -75,11 +75,14 @@ echo "4) will use GITHUB-BRANCH --> '${githubBranch}'" # 5th optional parameter: DISPLAY-CLASS # ---------------------------------------- -# Could be 'hdmi', 'headless' or 'lcd' +# Could be 'hdmi', 'headless' or 'lcd' (lcd is default) # On 'false' the standard video output is used (HDMI) by default. # https://github.com/rootzoll/raspiblitz/issues/1265#issuecomment-813369284 displayClass="$5" -if [ ${#displayClass} -eq 0 ] || [ "${displayClass}" == "false" ]; then +if [ ${#displayClass} -eq 0 ]; then + displayClass="lcd" +fi +if [ "${displayClass}" == "false" ]; then displayClass="hdmi" fi if [ "${displayClass}" != "hdmi" ] && [ "${displayClass}" != "lcd" ] && [ "${displayClass}" != "headless" ]; then