From b9b4ae66bd28c49e6c51d127686039c521b9b73e Mon Sep 17 00:00:00 2001 From: Ing Date: Sun, 10 Dec 2023 20:09:17 +0800 Subject: [PATCH] remove web for lszrz --- files/initrd/opt/rr/lang/rr.pot | 4 ++-- files/initrd/opt/rr/lang/zh_CN.po | 8 ++++---- files/initrd/opt/rr/lang/zh_HK.po | 8 ++++---- files/initrd/opt/rr/lang/zh_TW.po | 8 ++++---- files/initrd/opt/rr/menu.sh | 18 +++++++++--------- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/files/initrd/opt/rr/lang/rr.pot b/files/initrd/opt/rr/lang/rr.pot index c4c509fe..1876c6e7 100644 --- a/files/initrd/opt/rr/lang/rr.pot +++ b/files/initrd/opt/rr/lang/rr.pot @@ -318,7 +318,7 @@ msgid "" msgstr "" #: menu.sh:419 menu.sh:548 menu.sh:1509 menu.sh:2079 -msgid "This feature is only available when accessed via web/ssh." +msgid "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol)." msgstr "" #: menu.sh:423 @@ -988,7 +988,7 @@ msgstr "" #: menu.sh:1642 msgid "" -"opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." +"opkg install is complete. Please reconnect to ssh/web, or execute 'source ~/." "bashrc'" msgstr "" diff --git a/files/initrd/opt/rr/lang/zh_CN.po b/files/initrd/opt/rr/lang/zh_CN.po index 48bd59a2..7b78474f 100644 --- a/files/initrd/opt/rr/lang/zh_CN.po +++ b/files/initrd/opt/rr/lang/zh_CN.po @@ -321,8 +321,8 @@ msgid "" msgstr "名称颜色为\"\\Z4蓝色\\Zn\"的为已添加, 颜色为\"黑色\"的为未添加.\\n\\n" #: menu.sh:419 menu.sh:548 menu.sh:1509 menu.sh:2079 -msgid "This feature is only available when accessed via web/ssh." -msgstr "此功能仅在通过 web/ssh 访问时可用." +msgid "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol)." +msgstr "此功能仅在通过 ssh 访问时可用(需要支持ZModem协议的终端)." #: menu.sh:423 msgid "Please upload the *.addons file." @@ -1005,9 +1005,9 @@ msgstr "opkg 安装中 ..." #: menu.sh:1642 msgid "" -"opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." +"opkg install is complete. Please reconnect to ssh/web, or execute 'source ~/." "bashrc'" -msgstr "opkg 安装完成. 请重新链接 SSH/web, 或者执行 'source ~/.bashrc'" +msgstr "opkg 安装完成. 请重新链接 ssh/web, 或者执行 'source ~/.bashrc'" #: menu.sh:1654 msgid "Please enter a proxy server url.(e.g., http://192.168.1.1:7981/)" diff --git a/files/initrd/opt/rr/lang/zh_HK.po b/files/initrd/opt/rr/lang/zh_HK.po index 9fbc6153..85b35af5 100644 --- a/files/initrd/opt/rr/lang/zh_HK.po +++ b/files/initrd/opt/rr/lang/zh_HK.po @@ -321,8 +321,8 @@ msgid "" msgstr "名稱顏色為\"\\Z4藍色\\Zn\"的為已添加, 顏色為\"黑色\"的為未添加..\\n\\n" #: menu.sh:419 menu.sh:548 menu.sh:1509 menu.sh:2079 -msgid "This feature is only available when accessed via web/ssh." -msgstr "此功能僅通過 web/ssh 訪問時可用." +msgid "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol)." +msgstr "此功能僅通過 ssh 訪問時可用(需要支援ZModem協定的終端)." #: menu.sh:423 msgid "Please upload the *.addons file." @@ -1005,9 +1005,9 @@ msgstr "opkg 安裝中 ..." #: menu.sh:1642 msgid "" -"opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." +"opkg install is complete. Please reconnect to ssh/web, or execute 'source ~/." "bashrc'" -msgstr "opkg 安裝完成. 請重新連結 SSH/web, 或者執行 'source ~/.bashrc'" +msgstr "opkg 安裝完成. 請重新連結 ssh/web, 或者執行 'source ~/.bashrc'" #: menu.sh:1654 msgid "Please enter a proxy server url.(e.g., http://192.168.1.1:7981/)" diff --git a/files/initrd/opt/rr/lang/zh_TW.po b/files/initrd/opt/rr/lang/zh_TW.po index 4695f079..79e5b979 100644 --- a/files/initrd/opt/rr/lang/zh_TW.po +++ b/files/initrd/opt/rr/lang/zh_TW.po @@ -322,8 +322,8 @@ msgstr "" "名稱色彩為 \"\\Z4藍色\\Zn\" 者為已加入,色彩為 \"黑色\" 者為未加入。\\n\\n" #: menu.sh:419 menu.sh:548 menu.sh:1509 menu.sh:2079 -msgid "This feature is only available when accessed via web/ssh." -msgstr "此功能僅在透過 web/ssh 存取時可用。" +msgid "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol)." +msgstr "此功能僅在透過 ssh 存取時可用(需要支援ZModem協定的終端)。" #: menu.sh:423 msgid "Please upload the *.addons file." @@ -1008,9 +1008,9 @@ msgstr "opkg 安裝中 ..." #: menu.sh:1642 msgid "" -"opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." +"opkg install is complete. Please reconnect to ssh/web, or execute 'source ~/." "bashrc'" -msgstr "opkg 安裝完成。請重新連線 SSH/web,或者執行「source ~/.bashrc」" +msgstr "opkg 安裝完成。請重新連線 ssh/web,或者執行「source ~/.bashrc」" #: menu.sh:1654 msgid "Please enter a proxy server url.(e.g., http://192.168.1.1:7981/)" diff --git a/files/initrd/opt/rr/menu.sh b/files/initrd/opt/rr/menu.sh index ff1e7152..8a308a88 100755 --- a/files/initrd/opt/rr/menu.sh +++ b/files/initrd/opt/rr/menu.sh @@ -414,9 +414,9 @@ function addonMenu() { --msgbox "${MSG}" 0 0 ;; o) - if ! tty | grep -q "/dev/pts"; then + if ! tty | grep -q "/dev/pts" || [ -z "${SSH_TTY}" ]; then DIALOG --title "$(TEXT "Addons")" \ - --msgbox "$(TEXT "This feature is only available when accessed via web/ssh.")" 0 0 + --msgbox "$(TEXT "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol).")" 0 0 return fi DIALOG --title "$(TEXT "Addons")" \ @@ -543,9 +543,9 @@ function moduleMenu() { touch ${PART1_PATH}/.build ;; o) - if ! tty | grep -q "/dev/pts"; then + if ! tty | grep -q "/dev/pts" || [ -z "${SSH_TTY}" ]; then DIALOG --title "$(TEXT "Modules")" \ - --msgbox "$(TEXT "This feature is only available when accessed via web/ssh.")" 0 0 + --msgbox "$(TEXT "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol).")" 0 0 return fi MSG="" @@ -1504,9 +1504,9 @@ function advancedMenu() { --msgbox ""$(TEXT "Save is complete.")"" 0 0 ;; d) - if ! tty | grep -q "/dev/pts"; then + if ! tty | grep -q "/dev/pts" || [ -z "${SSH_TTY}" ]; then DIALOG --title "$(TEXT "Advanced")" \ - --msgbox "$(TEXT "This feature is only available when accessed via web/ssh.")" 0 0 + --msgbox "$(TEXT "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol).")" 0 0 return fi DIALOG --title "$(TEXT "Advanced")" \ @@ -1639,7 +1639,7 @@ function advancedMenu() { ) 2>&1 | DIALOG --title "$(TEXT "Advanced")" \ --progressbox "$(TEXT "opkg installing ...")" 20 100 DIALOG --title "$(TEXT "Advanced")" \ - --msgbox "$(TEXT "opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/.bashrc'")" 0 0 + --msgbox "$(TEXT "opkg install is complete. Please reconnect to ssh/web, or execute 'source ~/.bashrc'")" 0 0 ;; g) [ "${DSMLOGO}" = "true" ] && DSMLOGO='false' || DSMLOGO='true' @@ -2074,9 +2074,9 @@ function updateMenu() { updateExts "LKMs" "0" ;; u) - if ! tty | grep -q "/dev/pts"; then + if ! tty | grep -q "/dev/pts" || [ -z "${SSH_TTY}" ]; then DIALOG --title "$(TEXT "Update")" \ - --msgbox "$(TEXT "This feature is only available when accessed via web/ssh.")" 0 0 + --msgbox "$(TEXT "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol).")" 0 0 return fi MSG=""