mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-03-18 18:02:40 +01:00
assy tests triggered by a uboot env variable
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user