Skip to content

Commit

Permalink
arc: rewrite more texts
Browse files Browse the repository at this point in the history
Signed-off-by: AuxXxilium <[email protected]>
  • Loading branch information
AuxXxilium committed Jun 27, 2024
1 parent 7493977 commit 7f5ca9a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions files/initrd/opt/arc/arc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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
Expand All @@ -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)"
Expand All @@ -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}"
Expand Down

0 comments on commit 7f5ca9a

Please sign in to comment.