mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
Inconsistent and misleading wording in the Recoery menu
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
2d764e398a
commit
50d8df9895
@ -46,9 +46,9 @@ menu_display () {
|
|||||||
|
|
||||||
# Network enable/disable
|
# Network enable/disable
|
||||||
if [ -e /mnt/usbnet ]; then
|
if [ -e /mnt/usbnet ]; then
|
||||||
message=" NETWORK DISABLE"
|
message=" NETWORK: ENABLED"
|
||||||
else
|
else
|
||||||
message=" NETWORK ENABLE"
|
message=" NETWORK: DISABLED"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -63,9 +63,9 @@ menu_display () {
|
|||||||
# Factory tests enable/disable
|
# Factory tests enable/disable
|
||||||
RUN_ENV_VAR=$(fw_printenv -n assembly_tests 2>/dev/null)
|
RUN_ENV_VAR=$(fw_printenv -n assembly_tests 2>/dev/null)
|
||||||
if [ "x${RUN_ENV_VAR}" == "x1" ]; then
|
if [ "x${RUN_ENV_VAR}" == "x1" ]; then
|
||||||
message=" FACTORY TESTS DISABLE"
|
message=" FACTORY TESTS: ENABLED"
|
||||||
else
|
else
|
||||||
message=" FACTORY TESTS ENABLE"
|
message=" FACTORY TESTS: DISABLED"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -74,9 +74,9 @@ menu_display () {
|
|||||||
# First boot enable/disable
|
# First boot enable/disable
|
||||||
FIRST_BOOT_OK_ENV_VAR=$(fw_printenv -n first_boot_ok 2>/dev/null)
|
FIRST_BOOT_OK_ENV_VAR=$(fw_printenv -n first_boot_ok 2>/dev/null)
|
||||||
if [ "x${FIRST_BOOT_OK_ENV_VAR}" == "x1" ]; then
|
if [ "x${FIRST_BOOT_OK_ENV_VAR}" == "x1" ]; then
|
||||||
message=" FIRST BOOT DISABLE"
|
message=" FIRST BOOT: DISABLED"
|
||||||
else
|
else
|
||||||
message=" FACTORY TESTS ENABLE"
|
message=" FIRST BOOT: ENABLED"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -217,10 +217,10 @@ menu_run () {
|
|||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
if [ -e /mnt/usbnet ]; then
|
if [ -e /mnt/usbnet ]; then
|
||||||
rm -f /mnt/usbnet
|
rm -f /mnt/usbnet
|
||||||
message=" NETWORK ENABLE"
|
message=" NETWORK: DISABLED"
|
||||||
else
|
else
|
||||||
touch /mnt/usbnet
|
touch /mnt/usbnet
|
||||||
message=" NETWORK DISABLE"
|
message=" NETWORK: ENABLED"
|
||||||
fi
|
fi
|
||||||
notif "${message}"
|
notif "${message}"
|
||||||
else
|
else
|
||||||
@ -241,10 +241,10 @@ menu_run () {
|
|||||||
RUN_ENV_VAR=$(fw_printenv -n assembly_tests 2>/dev/null)
|
RUN_ENV_VAR=$(fw_printenv -n assembly_tests 2>/dev/null)
|
||||||
if [ "x${RUN_ENV_VAR}" == "x1" ]; then
|
if [ "x${RUN_ENV_VAR}" == "x1" ]; then
|
||||||
fw_setenv assembly_tests 0
|
fw_setenv assembly_tests 0
|
||||||
message=" FACTORY TESTS ENABLE"
|
message=" FACTORY TESTS: DISABLED"
|
||||||
else
|
else
|
||||||
fw_setenv assembly_tests 1
|
fw_setenv assembly_tests 1
|
||||||
message=" FACTORY TESTS DISABLE"
|
message=" FACTORY TESTS: ENABLED"
|
||||||
fi
|
fi
|
||||||
notif "${message}"
|
notif "${message}"
|
||||||
;;
|
;;
|
||||||
@ -255,10 +255,10 @@ menu_run () {
|
|||||||
FIRST_BOOT_OK_ENV_VAR=$(fw_printenv -n first_boot_ok 2>/dev/null)
|
FIRST_BOOT_OK_ENV_VAR=$(fw_printenv -n first_boot_ok 2>/dev/null)
|
||||||
if [ "x${FIRST_BOOT_OK_ENV_VAR}" == "x1" ]; then
|
if [ "x${FIRST_BOOT_OK_ENV_VAR}" == "x1" ]; then
|
||||||
fw_setenv first_boot_ok
|
fw_setenv first_boot_ok
|
||||||
message=" FIRST BOOT ENABLE"
|
message=" FIRST BOOT: ENABLED"
|
||||||
else
|
else
|
||||||
fw_setenv first_boot_ok 1
|
fw_setenv first_boot_ok 1
|
||||||
message=" FIRST BOOT DISABLE"
|
message=" FIRST BOOT: DISABLED"
|
||||||
fi
|
fi
|
||||||
notif "${message}"
|
notif "${message}"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user