mirror of
https://github.com/RROrg/rr.git
synced 2025-08-23 04:58:33 +08:00
Compare commits
3 Commits
7e493851b8
...
a96b655d95
Author | SHA1 | Date | |
---|---|---|---|
|
a96b655d95 | ||
|
ead32a8717 | ||
|
6fe5bab1c7 |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -946,9 +946,9 @@ function cmdlineMenu() {
|
||||
RET=$?
|
||||
case ${RET} in
|
||||
0) # ok-button
|
||||
sn="$(cat "${TMP_PATH}/resp" | sed -n '1p')"
|
||||
mac1="$(cat "${TMP_PATH}/resp" | sed -n '2p')"
|
||||
mac2="$(cat "${TMP_PATH}/resp" | sed -n '3p')"
|
||||
sn="$(cat "${TMP_PATH}/resp" | sed -n '1p' | sed 's/.*/\U&/')"
|
||||
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' | sed 's/.*/\U&/')"
|
||||
if [ -z "${sn}" -o -z "${mac1}" ]; then
|
||||
DIALOG --title "$(TEXT "Cmdline")" \
|
||||
--yesno "$(TEXT "Invalid SN/MAC, retry?")" 0 0
|
||||
@ -2361,7 +2361,6 @@ function advancedMenu() {
|
||||
if [ -n "${PLATFORM}" ] && [ "true" = "$(readConfigKey "platforms.${PLATFORM}.dt" "${WORK_PATH}/platforms.yml")" ]; then
|
||||
echo "d \"$(TEXT "Custom DTS")\"" >>"${TMP_PATH}/menu"
|
||||
fi
|
||||
echo "q \"$(TEXT "Switch direct boot:") \Z4${DIRECTBOOT}\Zn\"" >>"${TMP_PATH}/menu"
|
||||
if [ "${DIRECTBOOT}" = "false" ]; then
|
||||
echo "i \"$(TEXT "Timeout of get ip in boot:") \Z4${BOOTIPWAIT}\Zn\"" >>"${TMP_PATH}/menu"
|
||||
echo "w \"$(TEXT "Timeout of boot wait:") \Z4${BOOTWAIT}\Zn\"" >>"${TMP_PATH}/menu"
|
||||
@ -2457,11 +2456,6 @@ function advancedMenu() {
|
||||
customDTS
|
||||
NEXT="e"
|
||||
;;
|
||||
q)
|
||||
[ "${DIRECTBOOT}" = "false" ] && DIRECTBOOT='true' || DIRECTBOOT='false'
|
||||
writeConfigKey "directboot" "${DIRECTBOOT}" "${USER_CONFIG_FILE}"
|
||||
NEXT="q"
|
||||
;;
|
||||
i)
|
||||
ITEMS="$(echo -e "1 \n5 \n10 \n30 \n60 \n")"
|
||||
DIALOG --title "$(TEXT "Advanced")" \
|
||||
@ -3498,6 +3492,7 @@ else
|
||||
fi
|
||||
fi
|
||||
if loaderIsConfigured; then
|
||||
echo "q \"$(TEXT "Direct boot:") \Z4${DIRECTBOOT}\Zn\"" >>"${TMP_PATH}/menu"
|
||||
echo "b \"$(TEXT "Boot the loader")\"" >>"${TMP_PATH}/menu"
|
||||
fi
|
||||
echo "l \"$(TEXT "Choose a language")\"" >>"${TMP_PATH}/menu"
|
||||
@ -3569,6 +3564,11 @@ else
|
||||
make
|
||||
NEXT="b"
|
||||
;;
|
||||
q)
|
||||
[ "${DIRECTBOOT}" = "false" ] && DIRECTBOOT='true' || DIRECTBOOT='false'
|
||||
writeConfigKey "directboot" "${DIRECTBOOT}" "${USER_CONFIG_FILE}"
|
||||
NEXT="q"
|
||||
;;
|
||||
b)
|
||||
boot && exit 0 || sleep 5
|
||||
;;
|
||||
|
@ -180,6 +180,13 @@
|
||||
middle:
|
||||
- "QPR"
|
||||
suffix: "alpha"
|
||||
"RS2423RP+":
|
||||
prefix:
|
||||
- "22B0"
|
||||
middle:
|
||||
- "V3R"
|
||||
suffix: "alpha"
|
||||
macpre: 9009d0
|
||||
"RS3621xs+":
|
||||
prefix:
|
||||
- "20A0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user