mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 04:29:53 +07:00
arc: rewrite more texts
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
74939772bb
commit
7f5ca9ac43
@ -443,7 +443,7 @@ function arcPatch() {
|
|||||||
fi
|
fi
|
||||||
# At present, the SN rules are not complete, and many SNs are not truly invalid, so not provide tips now.
|
# 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" \
|
dialog --backtitle "$(backtitle)" --colors --title "DSM SN" \
|
||||||
--yesno "Serial looks invalid, continue?" 5 50
|
--yesno "SN looks invalid, continue?" 5 50
|
||||||
[ $? -eq 0 ] && break
|
[ $? -eq 0 ] && break
|
||||||
done
|
done
|
||||||
writeConfigKey "arc.patch" "user" "${USER_CONFIG_FILE}"
|
writeConfigKey "arc.patch" "user" "${USER_CONFIG_FILE}"
|
||||||
@ -452,8 +452,8 @@ function arcPatch() {
|
|||||||
dialog --clear --backtitle "$(backtitle)" \
|
dialog --clear --backtitle "$(backtitle)" \
|
||||||
--nocancel --title "Non Arc Patch Model" \
|
--nocancel --title "Non Arc Patch Model" \
|
||||||
--menu "Please choose an Option." 8 50 0 \
|
--menu "Please choose an Option." 8 50 0 \
|
||||||
1 "Use random Serial/Mac" \
|
1 "Use random SN/Mac" \
|
||||||
2 "Use my Serial/Mac" \
|
2 "Use my SN/Mac" \
|
||||||
2>"${TMP_PATH}/resp"
|
2>"${TMP_PATH}/resp"
|
||||||
resp=$(cat ${TMP_PATH}/resp)
|
resp=$(cat ${TMP_PATH}/resp)
|
||||||
[ -z "${resp}" ] && return 1
|
[ -z "${resp}" ] && return 1
|
||||||
@ -463,8 +463,8 @@ function arcPatch() {
|
|||||||
writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
|
writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
|
||||||
elif [ ${resp} -eq 2 ]; then
|
elif [ ${resp} -eq 2 ]; then
|
||||||
while true; do
|
while true; do
|
||||||
dialog --backtitle "$(backtitle)" --colors --title "Serial" \
|
dialog --backtitle "$(backtitle)" --colors --title "DSM SN" \
|
||||||
--inputbox "Please enter a Serial Number " 0 0 "" \
|
--inputbox "Please enter a SN " 7 50 "" \
|
||||||
2>"${TMP_PATH}/resp"
|
2>"${TMP_PATH}/resp"
|
||||||
[ $? -ne 0 ] && break 2
|
[ $? -ne 0 ] && break 2
|
||||||
SN="$(cat ${TMP_PATH}/resp)"
|
SN="$(cat ${TMP_PATH}/resp)"
|
||||||
@ -474,8 +474,8 @@ function arcPatch() {
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
# At present, the SN rules are not complete, and many SNs are not truly invalid, so not provide tips now.
|
# 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" \
|
dialog --backtitle "$(backtitle)" --colors --title "DSM SN" \
|
||||||
--yesno "Serial looks invalid, continue?" 0 0
|
--yesno "SN looks invalid, continue?" 5 50
|
||||||
[ $? -eq 0 ] && break
|
[ $? -eq 0 ] && break
|
||||||
done
|
done
|
||||||
writeConfigKey "arc.patch" "user" "${USER_CONFIG_FILE}"
|
writeConfigKey "arc.patch" "user" "${USER_CONFIG_FILE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user