From 7274c6a5ff6ad61897c6fbc1e9f792ffa74a8815 2017-01-25 08:27:36 From: drtyhlpr Date: 2017-01-25 08:27:36 Subject: [PATCH] Fixed: Disable RPi2/3 under-volt warnings --- diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index e567faf..b31bc2b 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -215,9 +215,11 @@ if [ "$ENABLE_WIRELESS" = true ] && [ "$RPI_MODEL" != 3 ] ; then fi # Check if DISABLE_UNDERVOLT_WARNINGS parameter value is supported -if [ "$DISABLE_UNDERVOLT_WARNINGS" != 1 ] && [ "$DISABLE_UNDERVOLT_WARNINGS" != 2 ] ; then - echo "error: DISABLE_UNDERVOLT_WARNINGS=${DISABLE_UNDERVOLT_WARNINGS} is not supported" - exit 1 +if [ ! -z "$DISABLE_UNDERVOLT_WARNINGS" ] ; then + if [ "$DISABLE_UNDERVOLT_WARNINGS" != 1 ] && [ "$DISABLE_UNDERVOLT_WARNINGS" != 2 ] ; then + echo "error: DISABLE_UNDERVOLT_WARNINGS=${DISABLE_UNDERVOLT_WARNINGS} is not supported" + exit 1 + fi fi # Set compiler packages and build RPi2/3 Linux kernel if required by Debian release