assy tests triggered by a uboot env variable

This commit is contained in:
Vincent-FK
2020-11-20 15:41:56 +01:00
parent ec69eb8296
commit 311a200581
5 changed files with 11 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ if [ ${#} -ne 0 ]; then
fi
# Sanity check: Check if integer
brightness=$(fw_printenv | grep brightness= | cut -d'=' -f 2-)
brightness=$(fw_printenv -n brightness 2>/dev/null)
if ! [ ! "${brightness}" -ne "${brightness}" ] 2> /dev/null; then
brightness=${BRIGHTNESS_DEFAULT_VALUE}
fw_setenv brightness ${brightness}

View File

@@ -227,9 +227,11 @@ menu_run () {
if [ $? -eq 0 ]; then
if [ -e /mnt/.assembly_tests ]; then
rm -f /mnt/.assembly_tests
fw_setenv assembly_tests 0
message=" FACTORY TESTS ENABLE"
else
touch /mnt/.assembly_tests
#touch /mnt/.assembly_tests
fw_setenv assembly_tests 1
message=" FACTORY TESTS DISABLE"
fi
notif "${message}"