Skip to content

Commit

Permalink
arc: rewrite function
Browse files Browse the repository at this point in the history
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
  • Loading branch information
AuxXxilium committed Sep 19, 2024
1 parent 46f2e6d commit 100526b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions files/initrd/opt/arc/arc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}")"
Expand Down

0 comments on commit 100526b

Please sign in to comment.