mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Refactor menu.sh to uppercase serial number and MAC addresses
This commit is contained in:
parent
ead32a8717
commit
a96b655d95
@ -946,9 +946,9 @@ function cmdlineMenu() {
|
|||||||
RET=$?
|
RET=$?
|
||||||
case ${RET} in
|
case ${RET} in
|
||||||
0) # ok-button
|
0) # ok-button
|
||||||
sn="$(cat "${TMP_PATH}/resp" | sed -n '1p')"
|
sn="$(cat "${TMP_PATH}/resp" | sed -n '1p' | sed 's/.*/\U&/')"
|
||||||
mac1="$(cat "${TMP_PATH}/resp" | sed -n '2p' | sed 's/[:-]//g')"
|
mac1="$(cat "${TMP_PATH}/resp" | sed -n '2p' | sed 's/[:-]//g' | sed 's/.*/\U&/')"
|
||||||
mac2="$(cat "${TMP_PATH}/resp" | sed -n '3p' | sed 's/[:-]//g')"
|
mac2="$(cat "${TMP_PATH}/resp" | sed -n '3p' | sed 's/[:-]//g' | sed 's/.*/\U&/')"
|
||||||
if [ -z "${sn}" -o -z "${mac1}" ]; then
|
if [ -z "${sn}" -o -z "${mac1}" ]; then
|
||||||
DIALOG --title "$(TEXT "Cmdline")" \
|
DIALOG --title "$(TEXT "Cmdline")" \
|
||||||
--yesno "$(TEXT "Invalid SN/MAC, retry?")" 0 0
|
--yesno "$(TEXT "Invalid SN/MAC, retry?")" 0 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user