arc: rewrite function

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-09-19 22:32:45 +02:00
parent 46f2e6d576
commit 100526b0b0

View File

@ -1104,9 +1104,13 @@ else
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"
NEXT="H"
;;
h) [ "${USBMOUNT}" == "true" ] && USBMOUNT='false' || USBMOUNT='auto'
[ "${USBMOUNT}" == "false" ] && USBMOUNT='auto' || USBMOUNT='true'
[ "${USBMOUNT}" == "auto" ] && USBMOUNT='true' || USBMOUNT='false'
h) if [ "${USBMOUNT}" == "auto" ]; then
USBMOUNT='internal'
elif [ "${USBMOUNT}" == "internal" ]; then
USBMOUNT='external'
elif [ "${USBMOUNT}" == "external" ]; then
USBMOUNT='auto'
fi
writeConfigKey "usbmount" "${USBMOUNT}" "${USER_CONFIG_FILE}"
writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}"
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"