arc: rewrite more texts

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-06-27 19:16:25 +02:00
parent 74939772bb
commit 7f5ca9ac43

View File

@ -443,7 +443,7 @@ function arcPatch() {
fi
# At present, the SN rules are not complete, and many SNs are not truly invalid, so not provide tips now.
dialog --backtitle "$(backtitle)" --colors --title "DSM SN" \
--yesno "Serial looks invalid, continue?" 5 50
--yesno "SN looks invalid, continue?" 5 50
[ $? -eq 0 ] && break
done
writeConfigKey "arc.patch" "user" "${USER_CONFIG_FILE}"
@ -452,8 +452,8 @@ function arcPatch() {
dialog --clear --backtitle "$(backtitle)" \
--nocancel --title "Non Arc Patch Model" \
--menu "Please choose an Option." 8 50 0 \
1 "Use random Serial/Mac" \
2 "Use my Serial/Mac" \
1 "Use random SN/Mac" \
2 "Use my SN/Mac" \
2>"${TMP_PATH}/resp"
resp=$(cat ${TMP_PATH}/resp)
[ -z "${resp}" ] && return 1
@ -463,8 +463,8 @@ function arcPatch() {
writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
elif [ ${resp} -eq 2 ]; then
while true; do
dialog --backtitle "$(backtitle)" --colors --title "Serial" \
--inputbox "Please enter a Serial Number " 0 0 "" \
dialog --backtitle "$(backtitle)" --colors --title "DSM SN" \
--inputbox "Please enter a SN " 7 50 "" \
2>"${TMP_PATH}/resp"
[ $? -ne 0 ] && break 2
SN="$(cat ${TMP_PATH}/resp)"
@ -474,8 +474,8 @@ function arcPatch() {
break
fi
# At present, the SN rules are not complete, and many SNs are not truly invalid, so not provide tips now.
dialog --backtitle "$(backtitle)" --colors --title "Serial" \
--yesno "Serial looks invalid, continue?" 0 0
dialog --backtitle "$(backtitle)" --colors --title "DSM SN" \
--yesno "SN looks invalid, continue?" 5 50
[ $? -eq 0 ] && break
done
writeConfigKey "arc.patch" "user" "${USER_CONFIG_FILE}"