diff --git a/files/initrd/opt/rr/boot.sh b/files/initrd/opt/rr/boot.sh index 7536cd79..e6ca3254 100755 --- a/files/initrd/opt/rr/boot.sh +++ b/files/initrd/opt/rr/boot.sh @@ -33,8 +33,7 @@ if [ -f ${PART1_PATH}/.build -o "$(sha256sum "${ORI_ZIMAGE_FILE}" | awk '{print$ echo -e "\033[1;43m$(TEXT "DSM zImage changed")\033[0m" ${WORK_PATH}/zimage-patch.sh if [ $? -ne 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "$(TEXT "zImage not patched,\nPlease upgrade the bootloader version and try again.\nPatch error:\n")$(<"${LOG_FILE}")" 12 70 + echo -e "\033[1;43m$(TEXT "zImage not patched,\nPlease upgrade the bootloader version and try again.\nPatch error:\n")$(<"${LOG_FILE}")\033[0m" exit 1 fi fi @@ -46,8 +45,7 @@ if [ -f ${PART1_PATH}/.build -o "${RAMDISK_HASH_CUR}" != "${RAMDISK_HASH}" ]; th echo -e "\033[1;43m$(TEXT "DSM Ramdisk changed")\033[0m" ${WORK_PATH}/ramdisk-patch.sh if [ $? -ne 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "$(TEXT "Ramdisk not patched,\nPlease upgrade the bootloader version and try again.\nPatch error:\n")$(<"${LOG_FILE}")" 12 70 + echo -e "\033[1;43m$(TEXT "Ramdisk not patched,\nPlease upgrade the bootloader version and try again.\nPatch error:\n")$(<"${LOG_FILE}")\033[0m" exit 1 fi # Update SHA256 hash diff --git a/files/initrd/opt/rr/lang/rr.pot b/files/initrd/opt/rr/lang/rr.pot index 52b44a2a..499859ad 100644 --- a/files/initrd/opt/rr/lang/rr.pot +++ b/files/initrd/opt/rr/lang/rr.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-29 20:43+0800\n" +"POT-Creation-Date: 2023-10-31 17:00+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -21,7 +21,7 @@ msgstr "" msgid "Loader is not init!" msgstr "" -#: boot.sh:10 init.sh:103 +#: boot.sh:10 init.sh:104 msgid "Loader is not configured!" msgstr "" @@ -33,120 +33,115 @@ msgstr "" msgid "DSM zImage changed" msgstr "" -#: boot.sh:36 boot.sh:49 menu.sh:821 menu.sh:830 menu.sh:855 menu.sh:885 -#: menu.sh:897 menu.sh:921 menu.sh:929 menu.sh:961 menu.sh:978 menu.sh:985 -msgid "Error" -msgstr "" - -#: boot.sh:37 menu.sh:979 +#: boot.sh:36 menu.sh:993 msgid "" "zImage not patched,\\nPlease upgrade the bootloader version and try again." "\\nPatch error:\\n" msgstr "" -#: boot.sh:46 +#: boot.sh:45 msgid "DSM Ramdisk changed" msgstr "" -#: boot.sh:50 menu.sh:986 +#: boot.sh:48 menu.sh:999 msgid "" "Ramdisk not patched,\\nPlease upgrade the bootloader version and try again." "\\nPatch error:\\n" msgstr "" -#: boot.sh:69 +#: boot.sh:67 msgid "Model:" msgstr "" -#: boot.sh:70 +#: boot.sh:68 msgid "Build:" msgstr "" -#: boot.sh:71 +#: boot.sh:69 msgid "LKM: " msgstr "" -#: boot.sh:72 +#: boot.sh:70 msgid "DMI: " msgstr "" -#: boot.sh:73 +#: boot.sh:71 msgid "CPU: " msgstr "" -#: boot.sh:74 +#: boot.sh:72 msgid "MEM: " msgstr "" -#: boot.sh:77 +#: boot.sh:75 msgid "" "The current version of bootloader does not support booting %s-%s, please " "upgrade and rebuild." msgstr "" -#: boot.sh:89 +#: boot.sh:87 msgid "" "Please insert at least one sata/scsi disk for system installation, except " "for the bootloader disk." msgstr "" -#: boot.sh:152 +#: boot.sh:150 msgid "Cmdline:\\n" msgstr "" -#: boot.sh:158 +#: boot.sh:156 msgid "Reboot to boot directly in DSM" msgstr "" -#: boot.sh:164 init.sh:116 +#: boot.sh:162 init.sh:117 msgid "Detected %s network cards." msgstr "" -#: boot.sh:165 init.sh:117 +#: boot.sh:163 init.sh:118 msgid "Checking Connect." msgstr "" -#: boot.sh:185 +#: boot.sh:183 msgid "Waiting IP.(For reference only)" msgstr "" -#: boot.sh:192 init.sh:142 +#: boot.sh:190 init.sh:143 msgid "DOWN" msgstr "" -#: boot.sh:196 init.sh:146 +#: boot.sh:194 init.sh:147 msgid "NOT CONNECTED" msgstr "" -#: boot.sh:200 init.sh:150 +#: boot.sh:198 init.sh:151 msgid "TIMEOUT (Please check the IP on the router.)" msgstr "" -#: boot.sh:206 +#: boot.sh:204 msgid "Access \\033[1;34mhttp://%s:5000\\033[0m to connect the DSM via web." msgstr "" -#: boot.sh:218 +#: boot.sh:216 msgid "%2ds (Changing access(ssh/web) status will interrupt boot)" msgstr "" -#: boot.sh:222 +#: boot.sh:220 msgid "access(ssh/web) status has changed and booting is interrupted." msgstr "" -#: boot.sh:232 +#: boot.sh:230 msgid "Loading DSM kernel..." msgstr "" -#: boot.sh:245 +#: boot.sh:243 msgid "Warning, running kexec with --noefi param, strange things will happen!!" msgstr "" -#: boot.sh:250 +#: boot.sh:248 msgid "Booting..." msgstr "" -#: boot.sh:252 +#: boot.sh:250 msgid "" "[This interface will not be operational. Please wait a few minutes.\\nFind " "DSM via http://find.synology.com/ or Synology Assistant and connect.]" @@ -156,1004 +151,1073 @@ msgstr "" msgid "Network devices not found!" msgstr "" -#: init.sh:80 +#: init.sh:81 msgid "Loader disk neither USB or SATA/SCSI/NVME DoM" msgstr "" -#: init.sh:88 +#: init.sh:89 msgid "Loader disk:" msgstr "" -#: init.sh:96 +#: init.sh:97 msgid "Loading keymap" msgstr "" -#: init.sh:106 +#: init.sh:107 msgid "User requested edit settings." msgstr "" -#: init.sh:135 +#: init.sh:136 msgid "Waiting IP." msgstr "" -#: init.sh:156 +#: init.sh:157 msgid "" "Access \\033[1;34mhttp://%s:7681\\033[0m to configure the loader via web " "terminal." msgstr "" -#: init.sh:166 +#: init.sh:167 msgid "Call \\033[1;32mmenu.sh\\033[0m to configure loader" msgstr "" -#: init.sh:168 +#: init.sh:169 msgid "User config is on" msgstr "" -#: init.sh:169 +#: init.sh:170 msgid "Default SSH Root password is" msgstr "" -#: init.sh:183 +#: init.sh:184 msgid "" "You have less than 4GB of RAM, if errors occur in loader creation, please " "increase the amount of memory." msgstr "" -#: menu.sh:90 +#: menu.sh:92 msgid "Model" msgstr "" -#: menu.sh:91 +#: menu.sh:93 msgid "Reading models" msgstr "" -#: menu.sh:101 +#: menu.sh:103 msgid "Compatibility judgment" msgstr "" -#: menu.sh:122 +#: menu.sh:124 msgid "Disable flags restriction" msgstr "" -#: menu.sh:123 +#: menu.sh:125 msgid "Show all models" msgstr "" -#: menu.sh:125 +#: menu.sh:127 msgid "Choose the model" msgstr "" -#: menu.sh:213 +#: menu.sh:215 msgid "Choose a product version" msgstr "" -#: menu.sh:223 menu.sh:229 menu.sh:240 menu.sh:266 menu.sh:286 +#: menu.sh:225 menu.sh:231 menu.sh:242 menu.sh:268 menu.sh:288 msgid "Product Version" msgstr "" -#: menu.sh:224 +#: menu.sh:226 msgid "" "The current version has been set to %s. Do you want to reset the version?" msgstr "" -#: menu.sh:230 +#: menu.sh:232 msgid "" "This version does not support UEFI startup, Please select another version or " "switch the startup mode." msgstr "" -#: menu.sh:241 +#: menu.sh:243 msgid "Get pat data ..." msgstr "" -#: menu.sh:260 +#: menu.sh:262 msgid "" "Failed to get pat data,\\nPlease manually fill in the URL and md5sum of the " "corresponding version of pat." msgstr "" -#: menu.sh:264 +#: menu.sh:266 msgid "Successfully to get pat data,\\nPlease confirm or modify as needed." msgstr "" -#: menu.sh:267 +#: menu.sh:269 msgid "Retry" msgstr "" -#: menu.sh:287 +#: menu.sh:289 msgid "Reconfiguring Synoinfo, Addons and Modules" msgstr "" -#: menu.sh:330 menu.sh:468 menu.sh:605 menu.sh:722 menu.sh:1824 +#: menu.sh:334 menu.sh:464 menu.sh:595 menu.sh:721 menu.sh:1864 msgid "Choose a option" msgstr "" -#: menu.sh:331 +#: menu.sh:335 msgid "Add an addon" msgstr "" -#: menu.sh:332 -msgid "Delete addon(s)" +#: menu.sh:336 +msgid "Delete addons" msgstr "" -#: menu.sh:333 -msgid "Show user addons" +#: menu.sh:337 +msgid "Show all addons" msgstr "" -#: menu.sh:334 -msgid "Show all available addons" -msgstr "" - -#: menu.sh:335 +#: menu.sh:338 msgid "Upload a external addon" msgstr "" -#: menu.sh:336 menu.sh:473 menu.sh:601 menu.sh:717 menu.sh:1040 menu.sh:1821 -#: menu.sh:1999 menu.sh:2072 +#: menu.sh:339 menu.sh:469 menu.sh:593 menu.sh:719 menu.sh:1060 menu.sh:1861 +#: menu.sh:2039 menu.sh:2111 msgid "Exit" msgstr "" -#: menu.sh:348 menu.sh:353 menu.sh:359 menu.sh:371 menu.sh:379 menu.sh:397 -#: menu.sh:411 menu.sh:416 menu.sh:420 menu.sh:434 menu.sh:438 menu.sh:446 -#: menu.sh:449 +#: menu.sh:351 menu.sh:356 menu.sh:362 menu.sh:374 menu.sh:382 menu.sh:406 +#: menu.sh:411 menu.sh:415 menu.sh:429 menu.sh:433 menu.sh:441 menu.sh:444 msgid "Addons" msgstr "" -#: menu.sh:349 +#: menu.sh:352 msgid "No available addons to add" msgstr "" -#: menu.sh:354 +#: menu.sh:357 msgid "Select an addon" msgstr "" -#: menu.sh:360 +#: menu.sh:363 msgid "Type a optional params to addon" msgstr "" -#: menu.sh:372 +#: menu.sh:375 msgid "No user addons to remove" msgstr "" -#: menu.sh:380 +#: menu.sh:383 msgid "Select addon to remove" msgstr "" -#: menu.sh:417 menu.sh:1365 menu.sh:1396 menu.sh:1429 menu.sh:1898 +#: menu.sh:397 +msgid "" +"Name with color \"\\Z4blue\\Zn\" have been added, with color \"black\" are " +"not added.\\n\\n" +msgstr "" + +#: menu.sh:412 menu.sh:1383 menu.sh:1414 menu.sh:1447 menu.sh:1938 msgid "This feature is only available when accessed via web/ssh." msgstr "" -#: menu.sh:421 +#: menu.sh:416 msgid "Please upload the *.addons file." msgstr "" -#: menu.sh:435 menu.sh:573 menu.sh:1925 menu.sh:1939 +#: menu.sh:430 menu.sh:569 menu.sh:1965 menu.sh:1979 msgid "Not a valid file, please try again!" msgstr "" -#: menu.sh:439 +#: menu.sh:434 msgid "The addon already exists. Do you want to overwrite it?" msgstr "" -#: menu.sh:447 +#: menu.sh:442 msgid "Addon '%s' added to loader, Please enable it in 'Add an addon' menu." msgstr "" -#: menu.sh:450 +#: menu.sh:445 msgid "File format not recognized!" msgstr "" -#: menu.sh:469 +#: menu.sh:465 msgid "Show/Select modules" msgstr "" -#: menu.sh:470 +#: menu.sh:466 msgid "Select loaded modules" msgstr "" -#: menu.sh:471 +#: menu.sh:467 msgid "Upload a external module" msgstr "" -#: menu.sh:472 +#: menu.sh:468 msgid "Priority use of official drivers:" msgstr "" -#: menu.sh:479 menu.sh:492 menu.sh:529 menu.sh:549 menu.sh:552 menu.sh:568 -#: menu.sh:572 +#: menu.sh:475 menu.sh:488 menu.sh:525 menu.sh:545 menu.sh:548 menu.sh:564 +#: menu.sh:568 msgid "Modules" msgstr "" -#: menu.sh:480 +#: menu.sh:476 msgid "Reading modules ..." msgstr "" -#: menu.sh:493 +#: menu.sh:489 msgid "Select all" msgstr "" -#: menu.sh:494 +#: menu.sh:490 msgid "Deselect all" msgstr "" -#: menu.sh:495 +#: menu.sh:491 msgid "Select modules to include" msgstr "" -#: menu.sh:530 +#: menu.sh:526 msgid "Selecting loaded modules" msgstr "" -#: menu.sh:544 +#: menu.sh:540 msgid "" "This function is experimental and dangerous. If you don't know much, please " "exit.\\n" msgstr "" -#: menu.sh:545 +#: menu.sh:541 msgid "" "The imported .ko of this function will be implanted into the corresponding " "arch's modules package, which will affect all models of the arch.\\n" msgstr "" -#: menu.sh:546 +#: menu.sh:542 msgid "" "This program will not determine the availability of imported modules or even " "make type judgments, as please double check if it is correct.\\n" msgstr "" -#: menu.sh:547 +#: menu.sh:543 msgid "" "If you want to remove it, please go to the \"Update Menu\" -> \"Update " "modules\" to forcibly update the modules. All imports will be reset.\\n" msgstr "" -#: menu.sh:548 +#: menu.sh:544 msgid "Do you want to continue?" msgstr "" -#: menu.sh:553 +#: menu.sh:549 msgid "Please upload the *.ko file." msgstr "" -#: menu.sh:569 +#: menu.sh:565 msgid "Module '%s' added to %s-%s" msgstr "" -#: menu.sh:594 -msgid "Add/edit a cmdline item" +#: menu.sh:587 +msgid "Add/Edit a cmdline item" msgstr "" -#: menu.sh:595 -msgid "Delete cmdline item(s)" +#: menu.sh:588 +msgid "Show/Delete cmdline items" msgstr "" -#: menu.sh:597 +#: menu.sh:590 msgid "Define SN/MAC" msgstr "" -#: menu.sh:599 -msgid "Show user added cmdline" -msgstr "" - -#: menu.sh:600 +#: menu.sh:592 msgid "Show model inherent cmdline" msgstr "" -#: menu.sh:610 menu.sh:616 menu.sh:626 menu.sh:634 menu.sh:650 menu.sh:660 -#: menu.sh:689 menu.sh:697 +#: menu.sh:601 +msgid "Commonly used cmdlines:\\n" +msgstr "" + +#: menu.sh:602 +msgid "" +" * \\Z4disable_mtrr_trim=\\Zn\\n disables kernel trim any uncacheable " +"memory out.\\n" +msgstr "" + +#: menu.sh:603 +msgid "" +" * \\Z4\"intel_idle.max_cstate\"=1\\Zn\\n Set the maximum C-state depth " +"allowed by the intel_idle driver.\\n" +msgstr "" + +#: menu.sh:604 +msgid " * \\Z4SataPortMap=??\\Zn\\n Sata Port Map.\\n" +msgstr "" + +#: menu.sh:605 +msgid "" +" * \\Z4DiskIdxMap=??\\Zn\\n Disk Index Map, Modify disk name sequence.\\n" +msgstr "" + +#: menu.sh:606 menu.sh:732 +msgid "\\nEnter the parameter name and value you need to add.\\n" +msgstr "" + +#: menu.sh:609 menu.sh:618 menu.sh:642 menu.sh:650 menu.sh:666 menu.sh:676 +#: menu.sh:705 menu.sh:735 menu.sh:744 msgid "Cmdline" msgstr "" -#: menu.sh:611 -msgid "Type a name of cmdline" +#: menu.sh:619 menu.sh:745 +msgid "Invalid parameter name, retry?" msgstr "" -#: menu.sh:617 -msgid "Type a value of '%s' cmdline" -msgstr "" - -#: menu.sh:627 +#: menu.sh:643 msgid "No user cmdline to remove" msgstr "" -#: menu.sh:635 +#: menu.sh:651 msgid "Select cmdline to remove" msgstr "" -#: menu.sh:646 +#: menu.sh:662 msgid "Note: (MAC will not be set to NIC)" msgstr "" -#: menu.sh:651 +#: menu.sh:667 msgid "Random" msgstr "" -#: menu.sh:661 +#: menu.sh:677 msgid "Invalid SN/MAC, retry?" msgstr "" -#: menu.sh:714 +#: menu.sh:717 msgid "Add/edit a synoinfo item" msgstr "" -#: menu.sh:715 -msgid "Delete synoinfo item(s)" +#: menu.sh:718 +msgid "Show/Delete synoinfo items" msgstr "" -#: menu.sh:716 -msgid "Show synoinfo entries" -msgstr "" - -#: menu.sh:727 menu.sh:733 menu.sh:744 menu.sh:752 menu.sh:769 -msgid "Synoinfo" +#: menu.sh:727 +msgid "Commonly used synoinfo:\\n" msgstr "" #: menu.sh:728 -msgid "Type a name of synoinfo entry" +msgid " * \\Z4maxdisks=??\\Zn\\n Maximum number of disks supported.\\n" msgstr "" -#: menu.sh:734 -msgid "Type a value of '%s' synoinfo entry" +#: menu.sh:729 +msgid " * \\Z4internalportcfg=0x????\\Zn\\n Internal(sata) disks mask.\\n" msgstr "" -#: menu.sh:745 +#: menu.sh:730 +msgid " * \\Z4esataportcfg=0x????\\Zn\\n Esata disks mask.\\n" +msgstr "" + +#: menu.sh:731 +msgid " * \\Z4usbportcfg=0x????\\Zn\\n USB disks mask.\\n" +msgstr "" + +#: menu.sh:769 menu.sh:777 +msgid "Synoinfo" +msgstr "" + +#: menu.sh:770 msgid "No synoinfo entries to remove" msgstr "" -#: menu.sh:753 +#: menu.sh:778 msgid "Select synoinfo entry to remove" msgstr "" -#: menu.sh:793 +#: menu.sh:811 msgid "%s cached." msgstr "" -#: menu.sh:797 +#: menu.sh:815 msgid "Cleaning cache ..." msgstr "" -#: menu.sh:805 +#: menu.sh:823 msgid "" "Based on the current network situation, switch to %s mirror to downloading." msgstr "" -#: menu.sh:809 +#: menu.sh:827 msgid "Downloading %s ..." msgstr "" -#: menu.sh:820 menu.sh:884 +#: menu.sh:838 menu.sh:899 msgid "Check internet or cache disk space.\\nError: %d:%d" msgstr "" -#: menu.sh:827 +#: menu.sh:844 msgid "Checking hash of %s: " msgstr "" -#: menu.sh:831 +#: menu.sh:847 msgid "" "md5 hash of pat not match, Please reget pat data from the version menu and " "try again!" msgstr "" -#: menu.sh:834 menu.sh:938 menu.sh:948 +#: menu.sh:850 menu.sh:950 menu.sh:960 msgid "OK" msgstr "" -#: menu.sh:838 +#: menu.sh:854 msgid "Disassembling %s: " msgstr "" -#: menu.sh:843 +#: menu.sh:859 msgid "Uncompressed tar" msgstr "" -#: menu.sh:847 +#: menu.sh:863 msgid "Compressed tar" msgstr "" -#: menu.sh:851 +#: menu.sh:867 msgid "Encrypted" msgstr "" -#: menu.sh:856 +#: menu.sh:871 msgid "" "Could not determine if pat file is encrypted or not, maybe corrupted, try " "again!" msgstr "" -#: menu.sh:866 +#: menu.sh:881 msgid "Extractor cached." msgstr "" -#: menu.sh:873 +#: menu.sh:888 msgid "Downloading old pat to extract synology .pat extractor..." msgstr "" -#: menu.sh:915 menu.sh:918 +#: menu.sh:928 menu.sh:931 msgid "Extracting..." msgstr "" -#: menu.sh:930 +#: menu.sh:942 msgid "pat Invalid, try again!" msgstr "" -#: menu.sh:933 +#: menu.sh:945 msgid "Setting hash: " msgstr "" -#: menu.sh:940 +#: menu.sh:952 msgid "Copying files: " msgstr "" -#: menu.sh:962 +#: menu.sh:977 msgid "Addon %s not found!" msgstr "" -#: menu.sh:993 menu.sh:2051 +#: menu.sh:1006 menu.sh:2090 msgid "Cleaning ..." msgstr "" -#: menu.sh:995 +#: menu.sh:1008 msgid "Ready!" msgstr "" -#: menu.sh:1007 -msgid "Switch LKM version:" -msgstr "" - -#: menu.sh:1008 -msgid "HDD sort:" -msgstr "" - -#: menu.sh:1011 -msgid "Switch direct boot:" +#: menu.sh:1012 menu.sh:2042 +msgid "Main menu" msgstr "" #: menu.sh:1013 -msgid "Timeout of get ip in boot:" +msgid "Making ..." msgstr "" #: menu.sh:1014 -msgid "Timeout of boot wait:" +msgid "Error" msgstr "" -#: menu.sh:1015 -msgid "kernel switching method:" -msgstr "" - -#: menu.sh:1017 -msgid "Reboot on kernel panic:" -msgstr "" - -#: menu.sh:1019 -msgid "Set static IP" -msgstr "" - -#: menu.sh:1020 -msgid "Edit user config file manually" -msgstr "" - -#: menu.sh:1021 -msgid "Edit grub.cfg file manually" -msgstr "" - -#: menu.sh:1022 -msgid "Try to recovery a DSM installed system" -msgstr "" - -#: menu.sh:1023 -msgid "Show SATA(s) # ports and drives" -msgstr "" - -#: menu.sh:1025 -msgid "show/modify the current pat data" +#: menu.sh:1026 +msgid "Switch LKM version:" msgstr "" #: menu.sh:1027 -msgid "Allow downgrade installation" -msgstr "" - -#: menu.sh:1028 -msgid "Format disk(s) # Without loader disk" -msgstr "" - -#: menu.sh:1029 -msgid "Reset DSM system password" +msgid "HDD sort:" msgstr "" #: menu.sh:1030 -msgid "Save modifications of '/opt/rr'" +msgid "Switch direct boot:" msgstr "" #: menu.sh:1032 -msgid "Custom dts file # Need rebuild" +msgid "Timeout of get ip in boot:" msgstr "" -#: menu.sh:1035 -msgid "Backup bootloader disk # test" +#: menu.sh:1033 +msgid "Timeout of boot wait:" +msgstr "" + +#: menu.sh:1034 +msgid "kernel switching method:" msgstr "" #: menu.sh:1036 -msgid "Restore bootloader disk # test" +msgid "Reboot on kernel panic:" msgstr "" #: menu.sh:1038 -msgid "Install development tools" +msgid "Set static IP" msgstr "" #: menu.sh:1039 +msgid "Edit user config file manually" +msgstr "" + +#: menu.sh:1040 +msgid "Edit grub.cfg file manually" +msgstr "" + +#: menu.sh:1041 +msgid "Try to recovery a DSM installed system" +msgstr "" + +#: menu.sh:1042 +msgid "Show SATA(s) # ports and drives" +msgstr "" + +#: menu.sh:1044 +msgid "show/modify the current pat data" +msgstr "" + +#: menu.sh:1046 +msgid "Allow downgrade installation" +msgstr "" + +#: menu.sh:1047 +msgid "Format disk(s) # Without loader disk" +msgstr "" + +#: menu.sh:1048 +msgid "Reset DSM system password" +msgstr "" + +#: menu.sh:1049 +msgid "Save modifications of '/opt/rr'" +msgstr "" + +#: menu.sh:1051 +msgid "Custom dts file # Need rebuild" +msgstr "" + +#: menu.sh:1054 +msgid "Backup bootloader disk # test" +msgstr "" + +#: menu.sh:1055 +msgid "Restore bootloader disk # test" +msgstr "" + +#: menu.sh:1057 +msgid "Report bugs to the author" +msgstr "" + +#: menu.sh:1058 +msgid "Install development tools" +msgstr "" + +#: menu.sh:1059 msgid "Show QR logo:" msgstr "" -#: menu.sh:1042 menu.sh:1066 menu.sh:1078 menu.sh:1098 menu.sh:1121 -#: menu.sh:1145 menu.sh:1209 menu.sh:1216 menu.sh:1234 menu.sh:1247 -#: menu.sh:1250 menu.sh:1260 menu.sh:1261 menu.sh:1266 menu.sh:1270 -#: menu.sh:1281 menu.sh:1283 menu.sh:1300 menu.sh:1305 menu.sh:1313 -#: menu.sh:1319 menu.sh:1332 menu.sh:1335 menu.sh:1341 menu.sh:1344 -#: menu.sh:1359 menu.sh:1364 menu.sh:1368 menu.sh:1383 menu.sh:1388 -#: menu.sh:1395 menu.sh:1399 menu.sh:1402 menu.sh:1407 menu.sh:1417 -#: menu.sh:1422 menu.sh:1428 menu.sh:1432 menu.sh:1449 menu.sh:1452 -#: menu.sh:1458 menu.sh:1466 menu.sh:1474 menu.sh:1481 menu.sh:1483 +#: menu.sh:1062 menu.sh:1086 menu.sh:1098 menu.sh:1118 menu.sh:1141 +#: menu.sh:1165 menu.sh:1229 menu.sh:1236 menu.sh:1254 menu.sh:1267 +#: menu.sh:1270 menu.sh:1280 menu.sh:1281 menu.sh:1286 menu.sh:1290 +#: menu.sh:1301 menu.sh:1303 menu.sh:1320 menu.sh:1325 menu.sh:1333 +#: menu.sh:1339 menu.sh:1352 menu.sh:1355 menu.sh:1359 menu.sh:1362 +#: menu.sh:1377 menu.sh:1382 menu.sh:1386 menu.sh:1401 menu.sh:1406 +#: menu.sh:1413 menu.sh:1417 menu.sh:1420 menu.sh:1425 menu.sh:1435 +#: menu.sh:1440 menu.sh:1446 menu.sh:1450 menu.sh:1467 menu.sh:1470 +#: menu.sh:1476 menu.sh:1484 menu.sh:1498 menu.sh:1502 menu.sh:1512 +#: menu.sh:1517 menu.sh:1524 menu.sh:1526 msgid "Advanced" msgstr "" -#: menu.sh:1043 +#: menu.sh:1063 msgid "Advanced option" msgstr "" -#: menu.sh:1067 menu.sh:1079 menu.sh:1099 +#: menu.sh:1087 menu.sh:1099 menu.sh:1119 msgid "Choose a time(seconds)" msgstr "" -#: menu.sh:1109 +#: menu.sh:1129 msgid "Temporary IP: (UI will not refresh)" msgstr "" -#: menu.sh:1146 +#: menu.sh:1166 msgid "Setting IP ..." msgstr "" -#: menu.sh:1207 +#: menu.sh:1227 msgid "\\nTotal of ports: %s\\n" msgstr "" -#: menu.sh:1208 +#: menu.sh:1228 msgid "" "\\nPorts with color \\Z1red\\Zn as DUMMY, color \\Z2\\Zbgreen\\Zn has drive " "connected." msgstr "" -#: menu.sh:1215 +#: menu.sh:1235 msgid "pat: (editable)" msgstr "" -#: menu.sh:1231 +#: menu.sh:1251 msgid "" "This feature will allow you to downgrade the installation by removing the " "VERSION file from the first partition of all disks.\\n" msgstr "" -#: menu.sh:1232 +#: menu.sh:1252 msgid "Therefore, please insert all disks before continuing.\\n" msgstr "" -#: menu.sh:1233 menu.sh:1267 +#: menu.sh:1253 menu.sh:1287 msgid "" "Warning:\\nThis operation is irreversible. Please backup important data. Do " "you want to continue?" msgstr "" -#: menu.sh:1248 +#: menu.sh:1268 msgid "Removing ..." msgstr "" -#: menu.sh:1249 +#: menu.sh:1269 msgid "Remove VERSION file for all disks completed." msgstr "" -#: menu.sh:1271 +#: menu.sh:1291 msgid "" "Warning:\\nThe current hds is in raid, do you still want to format them?" msgstr "" -#: menu.sh:1282 +#: menu.sh:1302 msgid "Formatting ..." msgstr "" -#: menu.sh:1284 +#: menu.sh:1304 msgid "Formatting is complete." msgstr "" -#: menu.sh:1301 +#: menu.sh:1321 msgid "The installed Syno system not found in the currently inserted disks!" msgstr "" -#: menu.sh:1306 +#: menu.sh:1326 msgid "Choose a user name" msgstr "" -#: menu.sh:1314 +#: menu.sh:1334 msgid "Type a new password for user '%s'" msgstr "" -#: menu.sh:1320 +#: menu.sh:1340 msgid "Invalid password" msgstr "" -#: menu.sh:1333 +#: menu.sh:1353 msgid "Resetting ..." msgstr "" -#: menu.sh:1336 +#: menu.sh:1356 msgid "Password reset completed." msgstr "" -#: menu.sh:1342 menu.sh:1400 menu.sh:1453 +#: menu.sh:1360 menu.sh:1418 menu.sh:1471 msgid "" "Warning:\\nDo not terminate midway, otherwise it may cause damage to the RR. " "Do you want to continue?" msgstr "" -#: menu.sh:1345 +#: menu.sh:1363 msgid "Saving ..." msgstr "" -#: menu.sh:1360 +#: menu.sh:1378 msgid "Save is complete." msgstr "" -#: menu.sh:1369 +#: menu.sh:1387 msgid "" "Currently, only dts format files are supported. Please prepare and click to " "confirm uploading.\\n(saved in /mnt/p3/users/)" msgstr "" -#: menu.sh:1384 +#: menu.sh:1402 msgid "Not a valid dts file, please try again!" msgstr "" -#: menu.sh:1389 +#: menu.sh:1407 msgid "A valid dts file, Automatically import at compile time." msgstr "" -#: menu.sh:1403 +#: menu.sh:1421 msgid "Backuping..." msgstr "" -#: menu.sh:1408 +#: menu.sh:1426 msgid "" "Failed to generate backup. There may be insufficient memory. Please clear " "the cache and try again!" msgstr "" -#: menu.sh:1415 +#: menu.sh:1433 msgid "Click on the address above to download." msgstr "" -#: menu.sh:1416 +#: menu.sh:1434 msgid "" "Please confirm the completion of the download before closing this window." msgstr "" -#: menu.sh:1423 +#: menu.sh:1441 msgid "backup is complete." msgstr "" -#: menu.sh:1433 +#: menu.sh:1451 msgid "" "Please upload the backup file.\\nCurrently, zip(github) and img.gz(backup) " "compressed file formats are supported." msgstr "" -#: menu.sh:1450 +#: menu.sh:1468 msgid "Not a valid .zip/.img.gz file, please try again!" msgstr "" -#: menu.sh:1459 +#: menu.sh:1477 msgid "Writing..." msgstr "" -#: menu.sh:1467 +#: menu.sh:1485 msgid "Restore bootloader disk with success to %s!\\nReboot?" msgstr "" -#: menu.sh:1475 +#: menu.sh:1499 +msgid "" +"Please via %s to download the logs,\\nAnd go to github to create an issue " +"and upload the logs." +msgstr "" + +#: menu.sh:1503 +msgid "Please go to github to create an issue and upload the logs." +msgstr "" + +#: menu.sh:1507 +msgid "\\Z1No logs found!\\Zn\\n\\n" +msgstr "" + +#: menu.sh:1508 +msgid "Please do as follows:\\n" +msgstr "" + +#: menu.sh:1509 +msgid " 1. Add dbgutils in addons and rebuild.\\n" +msgstr "" + +#: menu.sh:1510 +msgid " 2. Wait 10 minutes after booting.\\n" +msgstr "" + +#: menu.sh:1511 +msgid " 3. Reboot into RR and go to this option.\\n" +msgstr "" + +#: menu.sh:1518 msgid "" "This option only installs opkg package management, allowing you to install " "more tools for use and debugging. Do you want to continue?" msgstr "" -#: menu.sh:1482 +#: menu.sh:1525 msgid "opkg installing ..." msgstr "" -#: menu.sh:1484 +#: menu.sh:1527 msgid "" "opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." "bashrc'" msgstr "" -#: menu.sh:1499 menu.sh:1536 menu.sh:1543 +#: menu.sh:1542 menu.sh:1577 menu.sh:1584 msgid "Try recovery DSM" msgstr "" -#: menu.sh:1500 +#: menu.sh:1543 msgid "Trying to recovery a DSM installed system ..." msgstr "" -#: menu.sh:1526 +#: menu.sh:1571 msgid "Found a installation:\\nModel: %s\\nProductversion: %s" msgstr "" -#: menu.sh:1530 +#: menu.sh:1575 msgid "\\nSerial: %s" msgstr "" -#: menu.sh:1544 +#: menu.sh:1585 msgid "Unfortunately I couldn't mount the DSM partition!" msgstr "" -#: menu.sh:1552 menu.sh:1558 menu.sh:1581 +#: menu.sh:1593 menu.sh:1599 menu.sh:1622 msgid "Edit with caution" msgstr "" -#: menu.sh:1592 +#: menu.sh:1633 msgid "Alert" msgstr "" -#: menu.sh:1593 +#: menu.sh:1634 msgid "Config changed, would you like to rebuild the loader?" msgstr "" -#: menu.sh:1595 menu.sh:2002 menu.sh:2035 -msgid "Main menu" -msgstr "" - -#: menu.sh:1596 menu.sh:2036 -msgid "Making ..." -msgstr "" - -#: menu.sh:1606 menu.sh:1992 +#: menu.sh:1646 menu.sh:2032 msgid "Choose a language" msgstr "" -#: menu.sh:1620 +#: menu.sh:1660 msgid "Choose a layout" msgstr "" -#: menu.sh:1632 +#: menu.sh:1672 msgid "Choice a keymap" msgstr "" -#: menu.sh:1651 menu.sh:1706 menu.sh:1757 menu.sh:1829 menu.sh:1832 -#: menu.sh:1835 menu.sh:1838 menu.sh:1845 menu.sh:1852 menu.sh:1859 -#: menu.sh:1866 +#: menu.sh:1691 menu.sh:1746 menu.sh:1797 menu.sh:1869 menu.sh:1872 +#: menu.sh:1875 menu.sh:1878 menu.sh:1885 menu.sh:1892 menu.sh:1899 +#: menu.sh:1906 msgid "Update %s" msgstr "" -#: menu.sh:1654 +#: menu.sh:1694 msgid "Checking last version ..." msgstr "" -#: menu.sh:1667 menu.sh:1670 +#: menu.sh:1707 menu.sh:1710 msgid "Error checking new version.\\nError: TAG is %s" msgstr "" -#: menu.sh:1677 +#: menu.sh:1717 msgid "No new version." msgstr "" -#: menu.sh:1681 +#: menu.sh:1721 msgid "No new version. Actual version is %s\\nForce update?" msgstr "" -#: menu.sh:1690 +#: menu.sh:1730 msgid "Downloading ..." msgstr "" -#: menu.sh:1694 menu.sh:1697 +#: menu.sh:1734 menu.sh:1737 msgid "Error downloading new version.\\nError: %d:%d" msgstr "" -#: menu.sh:1708 menu.sh:1759 +#: menu.sh:1748 menu.sh:1799 msgid "Extracting last version" msgstr "" -#: menu.sh:1712 +#: menu.sh:1752 msgid "Error extracting update file" msgstr "" -#: menu.sh:1719 +#: menu.sh:1759 msgid "Checksum do not match!" msgstr "" -#: menu.sh:1728 +#: menu.sh:1768 msgid "" "The current version does not support upgrading to the latest update.zip. " "Please remake the bootloader disk!" msgstr "" -#: menu.sh:1733 +#: menu.sh:1773 msgid "Installing new files ..." msgstr "" -#: menu.sh:1750 +#: menu.sh:1790 msgid "RR updated with success to %s!\\nReboot?" msgstr "" -#: menu.sh:1765 +#: menu.sh:1805 msgid "Installing new %s ..." msgstr "" -#: menu.sh:1794 menu.sh:1797 +#: menu.sh:1834 menu.sh:1837 msgid "%s updated with success!" msgstr "" -#: menu.sh:1811 +#: menu.sh:1851 msgid "Update all" msgstr "" -#: menu.sh:1812 +#: menu.sh:1852 msgid "Update RR" msgstr "" -#: menu.sh:1813 +#: menu.sh:1853 msgid "Update addons" msgstr "" -#: menu.sh:1814 +#: menu.sh:1854 msgid "Update modules" msgstr "" -#: menu.sh:1815 +#: menu.sh:1855 msgid "Update LKMs" msgstr "" -#: menu.sh:1817 +#: menu.sh:1857 msgid "Set proxy server" msgstr "" -#: menu.sh:1819 +#: menu.sh:1859 msgid "Local upload" msgstr "" -#: menu.sh:1820 +#: menu.sh:1860 msgid "Pre Release:" msgstr "" -#: menu.sh:1829 menu.sh:1852 +#: menu.sh:1869 menu.sh:1892 msgid "addons" msgstr "" -#: menu.sh:1832 menu.sh:1859 +#: menu.sh:1872 menu.sh:1899 msgid "modules" msgstr "" -#: menu.sh:1835 menu.sh:1866 +#: menu.sh:1875 menu.sh:1906 msgid "LKMs" msgstr "" -#: menu.sh:1838 menu.sh:1845 +#: menu.sh:1878 menu.sh:1885 msgid "RR" msgstr "" -#: menu.sh:1875 menu.sh:1886 menu.sh:1897 menu.sh:1907 menu.sh:1924 -#: menu.sh:1938 +#: menu.sh:1915 menu.sh:1926 menu.sh:1937 menu.sh:1947 menu.sh:1964 +#: menu.sh:1978 msgid "Update" msgstr "" -#: menu.sh:1876 +#: menu.sh:1916 msgid "Please enter a proxy server url" msgstr "" -#: menu.sh:1887 +#: menu.sh:1927 msgid "Invalid proxy server url, continue?" msgstr "" -#: menu.sh:1902 +#: menu.sh:1942 msgid "" "Please keep the attachment name consistent with the attachment name on " "Github.\\n" msgstr "" -#: menu.sh:1903 +#: menu.sh:1943 msgid "Upload update.zip will update RR.\\n" msgstr "" -#: menu.sh:1904 +#: menu.sh:1944 msgid "Upload addons.zip will update Addons.\\n" msgstr "" -#: menu.sh:1905 +#: menu.sh:1945 msgid "Upload modules.zip will update Modules.\\n" msgstr "" -#: menu.sh:1906 +#: menu.sh:1946 msgid "Upload rp-lkms.zip will update LKMs.\\n" msgstr "" -#: menu.sh:1955 +#: menu.sh:1995 msgid "This person is very lazy and hasn't written anything." msgstr "" -#: menu.sh:1956 +#: menu.sh:1996 msgid "Edit" msgstr "" -#: menu.sh:1973 +#: menu.sh:2013 msgid "Choose a model" msgstr "" -#: menu.sh:1975 +#: menu.sh:2015 msgid "Choose a version" msgstr "" -#: menu.sh:1977 +#: menu.sh:2017 msgid "Addons menu" msgstr "" -#: menu.sh:1978 +#: menu.sh:2018 msgid "Modules menu" msgstr "" -#: menu.sh:1979 +#: menu.sh:2019 msgid "Cmdline menu" msgstr "" -#: menu.sh:1980 +#: menu.sh:2020 msgid "Synoinfo menu" msgstr "" -#: menu.sh:1983 +#: menu.sh:2023 msgid "Advanced menu" msgstr "" -#: menu.sh:1986 +#: menu.sh:2026 msgid "Build the loader" msgstr "" -#: menu.sh:1990 +#: menu.sh:2030 msgid "Boot the loader" msgstr "" -#: menu.sh:1993 +#: menu.sh:2033 msgid "Choose a keymap" msgstr "" -#: menu.sh:1995 +#: menu.sh:2035 msgid "Clean disk cache" msgstr "" -#: menu.sh:1997 +#: menu.sh:2037 msgid "Update menu" msgstr "" -#: menu.sh:1998 +#: menu.sh:2038 msgid "Notepad" msgstr "" -#: menu.sh:2067 +#: menu.sh:2106 msgid "Choose a action" msgstr "" -#: menu.sh:2068 +#: menu.sh:2107 msgid "Poweroff" msgstr "" -#: menu.sh:2069 +#: menu.sh:2108 msgid "Reboot" msgstr "" -#: menu.sh:2070 +#: menu.sh:2109 msgid "Reboot to RR" msgstr "" -#: menu.sh:2071 +#: menu.sh:2110 msgid "Back to shell" msgstr "" -#: menu.sh:2097 +#: menu.sh:2136 msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu" msgstr "" diff --git a/files/initrd/opt/rr/lang/zh_CN.po b/files/initrd/opt/rr/lang/zh_CN.po index 97403086..680d98a2 100644 --- a/files/initrd/opt/rr/lang/zh_CN.po +++ b/files/initrd/opt/rr/lang/zh_CN.po @@ -7,21 +7,21 @@ msgid "" msgstr "" "Project-Id-Version: RR\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-29 20:43+0800\n" -"PO-Revision-Date: 2023-10-29 20:50+0800\n" +"POT-Creation-Date: 2023-10-31 17:00+0800\n" +"PO-Revision-Date: 2023-10-31 17:00+0800\n" "Last-Translator: ing \n" "Language-Team: Chinese (simplified) \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4\n" +"X-Generator: Poedit 3.4.1\n" #: boot.sh:8 init.sh:9 menu.sh:9 msgid "Loader is not init!" msgstr "引导未初始化!" -#: boot.sh:10 init.sh:103 +#: boot.sh:10 init.sh:104 msgid "Loader is not configured!" msgstr "引导未配置!" @@ -33,120 +33,115 @@ msgstr "Welcome to %s" msgid "DSM zImage changed" msgstr "DSM zImage 已更改" -#: boot.sh:36 boot.sh:49 menu.sh:821 menu.sh:830 menu.sh:855 menu.sh:885 -#: menu.sh:897 menu.sh:921 menu.sh:929 menu.sh:961 menu.sh:978 menu.sh:985 -msgid "Error" -msgstr "错误" - -#: boot.sh:37 menu.sh:979 +#: boot.sh:36 menu.sh:993 msgid "" "zImage not patched,\\nPlease upgrade the bootloader version and try again." "\\nPatch error:\\n" msgstr "zImage 打补丁失败,\\n请升级引导版本并重试.\\nPatch 错误:\\n" -#: boot.sh:46 +#: boot.sh:45 msgid "DSM Ramdisk changed" msgstr "DSM Ramdisk 已更改" -#: boot.sh:50 menu.sh:986 +#: boot.sh:48 menu.sh:999 msgid "" "Ramdisk not patched,\\nPlease upgrade the bootloader version and try again." "\\nPatch error:\\n" msgstr "Ramdisk 打补丁失败,\\n请升级引导版本并重试.\\nPatch 错误:\\n" -#: boot.sh:69 +#: boot.sh:67 msgid "Model:" msgstr "型号: " -#: boot.sh:70 +#: boot.sh:68 msgid "Build:" msgstr "版本: " -#: boot.sh:71 +#: boot.sh:69 msgid "LKM: " msgstr "LKM: " -#: boot.sh:72 +#: boot.sh:70 msgid "DMI: " msgstr "DMI: " -#: boot.sh:73 +#: boot.sh:71 msgid "CPU: " msgstr "CPU: " -#: boot.sh:74 +#: boot.sh:72 msgid "MEM: " msgstr "MEM: " -#: boot.sh:77 +#: boot.sh:75 msgid "" "The current version of bootloader does not support booting %s-%s, please " "upgrade and rebuild." msgstr "当前版本的引导盘不支持引导 %s-%s, 请升级并重新编译." -#: boot.sh:89 +#: boot.sh:87 msgid "" "Please insert at least one sata/scsi disk for system installation, except " "for the bootloader disk." msgstr "除引导盘外, 请至少插入一块 sata/scsi 磁盘进行系统安装." -#: boot.sh:152 +#: boot.sh:150 msgid "Cmdline:\\n" msgstr "Cmdline:\\n" -#: boot.sh:158 +#: boot.sh:156 msgid "Reboot to boot directly in DSM" msgstr "重启并直接进入 DSM 引导" -#: boot.sh:164 init.sh:116 +#: boot.sh:162 init.sh:117 msgid "Detected %s network cards." msgstr "检测到 %s 个网卡." -#: boot.sh:165 init.sh:117 +#: boot.sh:163 init.sh:118 msgid "Checking Connect." msgstr "检查连接." -#: boot.sh:185 +#: boot.sh:183 msgid "Waiting IP.(For reference only)" msgstr "获取 IP.(仅供参考)" -#: boot.sh:192 init.sh:142 +#: boot.sh:190 init.sh:143 msgid "DOWN" msgstr "关闭" -#: boot.sh:196 init.sh:146 +#: boot.sh:194 init.sh:147 msgid "NOT CONNECTED" msgstr "未连接" -#: boot.sh:200 init.sh:150 +#: boot.sh:198 init.sh:151 msgid "TIMEOUT (Please check the IP on the router.)" msgstr "超时 (请检查路由器上的IP.)" -#: boot.sh:206 +#: boot.sh:204 msgid "Access \\033[1;34mhttp://%s:5000\\033[0m to connect the DSM via web." msgstr "在浏览器中访问 \\033[1;34mhttp://%s:5000\\033[0m 链接 DSM." -#: boot.sh:218 +#: boot.sh:216 msgid "%2ds (Changing access(ssh/web) status will interrupt boot)" msgstr "%2ds ((ssh/web)连接状态改变将中断启动)" -#: boot.sh:222 +#: boot.sh:220 msgid "access(ssh/web) status has changed and booting is interrupted." msgstr "(ssh/web)连接状态已改变, 启动被中断." -#: boot.sh:232 +#: boot.sh:230 msgid "Loading DSM kernel..." msgstr "加载 DSM 内核..." -#: boot.sh:245 +#: boot.sh:243 msgid "Warning, running kexec with --noefi param, strange things will happen!!" msgstr "警告, 使用'--noefi'参数运行'kexec', 可能有不好的事情发生!!" -#: boot.sh:250 +#: boot.sh:248 msgid "Booting..." msgstr "引导中..." -#: boot.sh:252 +#: boot.sh:250 msgid "" "[This interface will not be operational. Please wait a few minutes.\\nFind " "DSM via http://find.synology.com/ or Synology Assistant and connect.]" @@ -158,250 +153,251 @@ msgstr "" msgid "Network devices not found!" msgstr "未找到网卡!" -#: init.sh:80 +#: init.sh:81 msgid "Loader disk neither USB or SATA/SCSI/NVME DoM" msgstr "引导磁盘仅支持 USB 或者 SATA/SCSI/NVME DoM" -#: init.sh:88 +#: init.sh:89 msgid "Loader disk:" msgstr "引导盘:" -#: init.sh:96 +#: init.sh:97 msgid "Loading keymap" msgstr "加载键盘映射" -#: init.sh:106 +#: init.sh:107 msgid "User requested edit settings." msgstr "用户触发编辑设置." -#: init.sh:135 +#: init.sh:136 msgid "Waiting IP." msgstr "获取 IP." -#: init.sh:156 +#: init.sh:157 msgid "" "Access \\033[1;34mhttp://%s:7681\\033[0m to configure the loader via web " "terminal." msgstr "" "在浏览器中访问 \\033[1;34mhttp://%s:7681\\033[0m 进入 WEB 终端进行配置." -#: init.sh:166 +#: init.sh:167 msgid "Call \\033[1;32mmenu.sh\\033[0m to configure loader" msgstr "执行 \\033[1;32mmenu.sh\\033[0m 进入设置菜单" -#: init.sh:168 +#: init.sh:169 msgid "User config is on" msgstr "用户配置文件位于" -#: init.sh:169 +#: init.sh:170 msgid "Default SSH Root password is" msgstr "默认 SSH 的 root 密码为" -#: init.sh:183 +#: init.sh:184 msgid "" "You have less than 4GB of RAM, if errors occur in loader creation, please " "increase the amount of memory." msgstr "您的 RAM 不足 4GB, 如果在创建引导时出现错误, 请增加内存." -#: menu.sh:90 +#: menu.sh:92 msgid "Model" msgstr "型号" -#: menu.sh:91 +#: menu.sh:93 msgid "Reading models" msgstr "读取型号" -#: menu.sh:101 +#: menu.sh:103 msgid "Compatibility judgment" msgstr "兼容性判断" -#: menu.sh:122 +#: menu.sh:124 msgid "Disable flags restriction" msgstr "禁用标志限制" -#: menu.sh:123 +#: menu.sh:125 msgid "Show all models" msgstr "显示所有型号" -#: menu.sh:125 +#: menu.sh:127 msgid "Choose the model" msgstr "选择型号" -#: menu.sh:213 +#: menu.sh:215 msgid "Choose a product version" msgstr "选择版本" -#: menu.sh:223 menu.sh:229 menu.sh:240 menu.sh:266 menu.sh:286 +#: menu.sh:225 menu.sh:231 menu.sh:242 menu.sh:268 menu.sh:288 msgid "Product Version" msgstr "版本" -#: menu.sh:224 +#: menu.sh:226 msgid "" "The current version has been set to %s. Do you want to reset the version?" msgstr "当前版本已设置为 %s. 是否要重置版本?" -#: menu.sh:230 +#: menu.sh:232 msgid "" "This version does not support UEFI startup, Please select another version or " "switch the startup mode." msgstr "该版本不支持 UEFI 启动, 请选择其他版本或者切换启动模式." -#: menu.sh:241 +#: menu.sh:243 msgid "Get pat data ..." msgstr "获取 pat 数据 ..." -#: menu.sh:260 +#: menu.sh:262 msgid "" "Failed to get pat data,\\nPlease manually fill in the URL and md5sum of the " "corresponding version of pat." msgstr "获取 pat 数据失败,\\n请手动填写相应版本 pat 的 URL 和 MD5." -#: menu.sh:264 +#: menu.sh:266 msgid "Successfully to get pat data,\\nPlease confirm or modify as needed." msgstr "获取 pat 数据成功,\\n请确认或者按需修改." -#: menu.sh:267 +#: menu.sh:269 msgid "Retry" msgstr "重试" -#: menu.sh:287 +#: menu.sh:289 msgid "Reconfiguring Synoinfo, Addons and Modules" msgstr "重新配置 Syninfo, 插件和模块" -#: menu.sh:330 menu.sh:468 menu.sh:605 menu.sh:722 menu.sh:1824 +#: menu.sh:334 menu.sh:464 menu.sh:595 menu.sh:721 menu.sh:1864 msgid "Choose a option" msgstr "选择一个选项" -#: menu.sh:331 +#: menu.sh:335 msgid "Add an addon" msgstr "添加插件" -#: menu.sh:332 -msgid "Delete addon(s)" -msgstr "删除插件(s)" +#: menu.sh:336 +msgid "Delete addons" +msgstr "删除插件" -#: menu.sh:333 -msgid "Show user addons" -msgstr "显示用户插件" +#: menu.sh:337 +msgid "Show all addons" +msgstr "显示所有插件" -#: menu.sh:334 -msgid "Show all available addons" -msgstr "显示所有可用插件" - -#: menu.sh:335 +#: menu.sh:338 msgid "Upload a external addon" msgstr "上传外部插件" -#: menu.sh:336 menu.sh:473 menu.sh:601 menu.sh:717 menu.sh:1040 menu.sh:1821 -#: menu.sh:1999 menu.sh:2072 +#: menu.sh:339 menu.sh:469 menu.sh:593 menu.sh:719 menu.sh:1060 menu.sh:1861 +#: menu.sh:2039 menu.sh:2111 msgid "Exit" msgstr "退出" -#: menu.sh:348 menu.sh:353 menu.sh:359 menu.sh:371 menu.sh:379 menu.sh:397 -#: menu.sh:411 menu.sh:416 menu.sh:420 menu.sh:434 menu.sh:438 menu.sh:446 -#: menu.sh:449 +#: menu.sh:351 menu.sh:356 menu.sh:362 menu.sh:374 menu.sh:382 menu.sh:406 +#: menu.sh:411 menu.sh:415 menu.sh:429 menu.sh:433 menu.sh:441 menu.sh:444 msgid "Addons" msgstr "插件" -#: menu.sh:349 +#: menu.sh:352 msgid "No available addons to add" msgstr "没有可用的插件可添加" -#: menu.sh:354 +#: menu.sh:357 msgid "Select an addon" msgstr "选择插件" -#: menu.sh:360 +#: menu.sh:363 msgid "Type a optional params to addon" msgstr "输入插件的加载参数" -#: menu.sh:372 +#: menu.sh:375 msgid "No user addons to remove" msgstr "没有要删除的用户插件" -#: menu.sh:380 +#: menu.sh:383 msgid "Select addon to remove" msgstr "选择要删除的插件" -#: menu.sh:417 menu.sh:1365 menu.sh:1396 menu.sh:1429 menu.sh:1898 +#: menu.sh:397 +msgid "" +"Name with color \"\\Z4blue\\Zn\" have been added, with color \"black\" are " +"not added.\\n\\n" +msgstr "名称颜色为\"\\Z4蓝色\\Zn\"的为已添加, 颜色为\"黑色\"的为未添加.\\n\\n" + +#: menu.sh:412 menu.sh:1383 menu.sh:1414 menu.sh:1447 menu.sh:1938 msgid "This feature is only available when accessed via web/ssh." msgstr "此功能仅在通过 web/ssh 访问时可用." -#: menu.sh:421 +#: menu.sh:416 msgid "Please upload the *.addons file." msgstr "请上传 *.addons 文件." -#: menu.sh:435 menu.sh:573 menu.sh:1925 menu.sh:1939 +#: menu.sh:430 menu.sh:569 menu.sh:1965 menu.sh:1979 msgid "Not a valid file, please try again!" msgstr "不是有效的文件, 请重试!" -#: menu.sh:439 +#: menu.sh:434 msgid "The addon already exists. Do you want to overwrite it?" msgstr "该插件已存在, 是否覆盖?" -#: menu.sh:447 +#: menu.sh:442 msgid "Addon '%s' added to loader, Please enable it in 'Add an addon' menu." msgstr "插件 '%s' 已添加到引导中, 请在'添加插件' 菜单中开启." -#: menu.sh:450 +#: menu.sh:445 msgid "File format not recognized!" msgstr "文件格式无法识别!" -#: menu.sh:469 +#: menu.sh:465 msgid "Show/Select modules" msgstr "显示/选择模块" -#: menu.sh:470 +#: menu.sh:466 msgid "Select loaded modules" msgstr "选择已识别的模块" -#: menu.sh:471 +#: menu.sh:467 msgid "Upload a external module" msgstr "上传一个外部模块" -#: menu.sh:472 +#: menu.sh:468 msgid "Priority use of official drivers:" msgstr "优先使用官方模块:" -#: menu.sh:479 menu.sh:492 menu.sh:529 menu.sh:549 menu.sh:552 menu.sh:568 -#: menu.sh:572 +#: menu.sh:475 menu.sh:488 menu.sh:525 menu.sh:545 menu.sh:548 menu.sh:564 +#: menu.sh:568 msgid "Modules" msgstr "模块" -#: menu.sh:480 +#: menu.sh:476 msgid "Reading modules ..." msgstr "读取模块中 ..." -#: menu.sh:493 +#: menu.sh:489 msgid "Select all" msgstr "选择全部" -#: menu.sh:494 +#: menu.sh:490 msgid "Deselect all" msgstr "取消全选" -#: menu.sh:495 +#: menu.sh:491 msgid "Select modules to include" msgstr "选择要加载的插件" -#: menu.sh:530 +#: menu.sh:526 msgid "Selecting loaded modules" msgstr "选择已识别的模块" -#: menu.sh:544 +#: menu.sh:540 msgid "" "This function is experimental and dangerous. If you don't know much, please " "exit.\\n" msgstr "这个功能是实验性的, 很危险. 如果你知道的不多, 请退出. \\n" -#: menu.sh:545 +#: menu.sh:541 msgid "" "The imported .ko of this function will be implanted into the corresponding " "arch's modules package, which will affect all models of the arch.\\n" msgstr "" "该功能导入 .ko 将被植入相应的架构的模块包中, 这将影响该架构的所有型号.\\n" -#: menu.sh:546 +#: menu.sh:542 msgid "" "This program will not determine the availability of imported modules or even " "make type judgments, as please double check if it is correct.\\n" @@ -409,7 +405,7 @@ msgstr "" "该程序不会判断导入的驱动模块的可用性, 甚至不会做类型判断, 因从请你再三确认是" "否正确.\\n" -#: menu.sh:547 +#: menu.sh:543 msgid "" "If you want to remove it, please go to the \"Update Menu\" -> \"Update " "modules\" to forcibly update the modules. All imports will be reset.\\n" @@ -417,402 +413,450 @@ msgstr "" "如果您想删除它, 请转到 \"更新\"->\"更新模块\" 强制更新模块, 所有导入都将被重" "置.\\n" -#: menu.sh:548 +#: menu.sh:544 msgid "Do you want to continue?" msgstr "是否继续?" -#: menu.sh:553 +#: menu.sh:549 msgid "Please upload the *.ko file." msgstr "请上传 *.ko 文件." -#: menu.sh:569 +#: menu.sh:565 msgid "Module '%s' added to %s-%s" msgstr "模块 '%s' 已添加到 %s-%s" -#: menu.sh:594 -msgid "Add/edit a cmdline item" +#: menu.sh:587 +msgid "Add/Edit a cmdline item" msgstr "添加/编辑 cmdline 参数" -#: menu.sh:595 -msgid "Delete cmdline item(s)" -msgstr "删除 cmdline 参数(s)" +#: menu.sh:588 +msgid "Show/Delete cmdline items" +msgstr "显示/删除 cmdline 参数" -#: menu.sh:597 +#: menu.sh:590 msgid "Define SN/MAC" msgstr "自定义 SN/MAC" -#: menu.sh:599 -msgid "Show user added cmdline" -msgstr "显示用户添加的 cmdline 参数" - -#: menu.sh:600 +#: menu.sh:592 msgid "Show model inherent cmdline" msgstr "显示型号默认的 cmdline 参数" -#: menu.sh:610 menu.sh:616 menu.sh:626 menu.sh:634 menu.sh:650 menu.sh:660 -#: menu.sh:689 menu.sh:697 +#: menu.sh:601 +msgid "Commonly used cmdlines:\\n" +msgstr "常用 cmdlines:\\n" + +#: menu.sh:602 +msgid "" +" * \\Z4disable_mtrr_trim=\\Zn\\n disables kernel trim any uncacheable " +"memory out.\\n" +msgstr " * \\Z4disable_mtrr_trim=\\Zn\\n 禁用内核修剪任何不可缓存的内存.\\n" + +#: menu.sh:603 +msgid "" +" * \\Z4\"intel_idle.max_cstate\"=1\\Zn\\n Set the maximum C-state depth " +"allowed by the intel_idle driver.\\n" +msgstr "" +" * \\Z4\"intel_idle.max_cstate\"=1\\Zn\\n 设置 intel_idle 驱动允许使用的最" +"大 C-state 深度.\\n" + +#: menu.sh:604 +msgid " * \\Z4SataPortMap=??\\Zn\\n Sata Port Map.\\n" +msgstr " * \\Z4SataPortMap=??\\Zn\\n Sata Port Map.\\n" + +#: menu.sh:605 +msgid "" +" * \\Z4DiskIdxMap=??\\Zn\\n Disk Index Map, Modify disk name sequence.\\n" +msgstr " * \\Z4DiskIdxMap=??\\Zn\\n Disk Index Map, 修改磁盘名称顺序.\\n" + +#: menu.sh:606 menu.sh:732 +msgid "\\nEnter the parameter name and value you need to add.\\n" +msgstr "\\n输入需要添加的参数名称和值.\\n" + +#: menu.sh:609 menu.sh:618 menu.sh:642 menu.sh:650 menu.sh:666 menu.sh:676 +#: menu.sh:705 menu.sh:735 menu.sh:744 msgid "Cmdline" msgstr "Cmdline" -#: menu.sh:611 -msgid "Type a name of cmdline" -msgstr "输入参数的名称" +#: menu.sh:619 menu.sh:745 +msgid "Invalid parameter name, retry?" +msgstr "无效参数名称, 重试?" -#: menu.sh:617 -msgid "Type a value of '%s' cmdline" -msgstr "输入 '%s' 参数的值" - -#: menu.sh:627 +#: menu.sh:643 msgid "No user cmdline to remove" msgstr "没有用户参数被删除" -#: menu.sh:635 +#: menu.sh:651 msgid "Select cmdline to remove" msgstr "选择要删除的参数" -#: menu.sh:646 +#: menu.sh:662 msgid "Note: (MAC will not be set to NIC)" msgstr "注意: (MAC 不会设置到 NIC)" -#: menu.sh:651 +#: menu.sh:667 msgid "Random" msgstr "随机" -#: menu.sh:661 +#: menu.sh:677 msgid "Invalid SN/MAC, retry?" msgstr "无效 SN/MAC, 重试?" -#: menu.sh:714 +#: menu.sh:717 msgid "Add/edit a synoinfo item" msgstr "添加/编辑 Synoinfo 参数" -#: menu.sh:715 -msgid "Delete synoinfo item(s)" -msgstr "删除 Synoinfo 参数(s)" +#: menu.sh:718 +msgid "Show/Delete synoinfo items" +msgstr "显示/删除 Synoinfo 参数" -#: menu.sh:716 -msgid "Show synoinfo entries" -msgstr "显示 Synoinfo 参数" +#: menu.sh:727 +msgid "Commonly used synoinfo:\\n" +msgstr "常用 synoinfo:\\n" -#: menu.sh:727 menu.sh:733 menu.sh:744 menu.sh:752 menu.sh:769 +#: menu.sh:728 +msgid " * \\Z4maxdisks=??\\Zn\\n Maximum number of disks supported.\\n" +msgstr " * \\Z4maxdisks=??\\Zn\\n 最大硬盘数.\\n" + +#: menu.sh:729 +msgid " * \\Z4internalportcfg=0x????\\Zn\\n Internal(sata) disks mask.\\n" +msgstr " * \\Z4esataportcfg=0x????\\Zn\\n Internal(sata) 磁盘掩码.\\n" + +#: menu.sh:730 +msgid " * \\Z4esataportcfg=0x????\\Zn\\n Esata disks mask.\\n" +msgstr " * \\Z4esataportcfg=0x????\\Zn\\n Esata 磁盘掩码.\\n" + +#: menu.sh:731 +msgid " * \\Z4usbportcfg=0x????\\Zn\\n USB disks mask.\\n" +msgstr " * \\Z4usbportcfg=0x????\\Zn\\n USB 磁盘掩码.\\n" + +#: menu.sh:769 menu.sh:777 msgid "Synoinfo" msgstr "Synoinfo" -#: menu.sh:728 -msgid "Type a name of synoinfo entry" -msgstr "输入参数的名称" - -#: menu.sh:734 -msgid "Type a value of '%s' synoinfo entry" -msgstr "输入 '%s' 参数的值" - -#: menu.sh:745 +#: menu.sh:770 msgid "No synoinfo entries to remove" msgstr "没有 Synoinfo 参数被删除" -#: menu.sh:753 +#: menu.sh:778 msgid "Select synoinfo entry to remove" msgstr "选择要删除的参数" -#: menu.sh:793 +#: menu.sh:811 msgid "%s cached." msgstr "%s 已缓存." -#: menu.sh:797 +#: menu.sh:815 msgid "Cleaning cache ..." msgstr "清除缓存 ..." -#: menu.sh:805 +#: menu.sh:823 msgid "" "Based on the current network situation, switch to %s mirror to downloading." msgstr "根据当前的网络状况, 已切换到 %s 镜像服务器进行下载." -#: menu.sh:809 +#: menu.sh:827 msgid "Downloading %s ..." msgstr "下载 %s 中 ..." -#: menu.sh:820 menu.sh:884 +#: menu.sh:838 menu.sh:899 msgid "Check internet or cache disk space.\\nError: %d:%d" msgstr "请检查网络连接或磁盘空间.\\nError: %d:%d" -#: menu.sh:827 +#: menu.sh:844 msgid "Checking hash of %s: " msgstr "检查 %s 的 hash: " -#: menu.sh:831 +#: menu.sh:847 msgid "" "md5 hash of pat not match, Please reget pat data from the version menu and " "try again!" msgstr "pat 的 md5 Hash 不匹配, 请在版本菜单中重新获取 pat 数据后重试!" -#: menu.sh:834 menu.sh:938 menu.sh:948 +#: menu.sh:850 menu.sh:950 menu.sh:960 msgid "OK" msgstr "OK" -#: menu.sh:838 +#: menu.sh:854 msgid "Disassembling %s: " msgstr "解压缩 %s: " -#: menu.sh:843 +#: menu.sh:859 msgid "Uncompressed tar" msgstr "未压缩 tar" -#: menu.sh:847 +#: menu.sh:863 msgid "Compressed tar" msgstr "已压缩 tar" -#: menu.sh:851 +#: menu.sh:867 msgid "Encrypted" msgstr "已加密" -#: menu.sh:856 +#: menu.sh:871 msgid "" "Could not determine if pat file is encrypted or not, maybe corrupted, try " "again!" msgstr "无法确定 pat 文件是否加密, 可能已损坏, 请重试!" -#: menu.sh:866 +#: menu.sh:881 msgid "Extractor cached." msgstr "已存在解密程序." -#: menu.sh:873 +#: menu.sh:888 msgid "Downloading old pat to extract synology .pat extractor..." msgstr "下载旧 pat, 提取 .pat 解密程序中..." -#: menu.sh:915 menu.sh:918 +#: menu.sh:928 menu.sh:931 msgid "Extracting..." msgstr "解压中..." -#: menu.sh:930 +#: menu.sh:942 msgid "pat Invalid, try again!" msgstr "无效的 pat, 请重试!" -#: menu.sh:933 +#: menu.sh:945 msgid "Setting hash: " msgstr "设置 hash: " -#: menu.sh:940 +#: menu.sh:952 msgid "Copying files: " msgstr "拷贝文件: " -#: menu.sh:962 +#: menu.sh:977 msgid "Addon %s not found!" msgstr "插件 %s 未找到!" -#: menu.sh:993 menu.sh:2051 +#: menu.sh:1006 menu.sh:2090 msgid "Cleaning ..." msgstr "清除中 ..." -#: menu.sh:995 +#: menu.sh:1008 msgid "Ready!" msgstr "已就绪!" -#: menu.sh:1007 +#: menu.sh:1012 menu.sh:2042 +msgid "Main menu" +msgstr "主菜单" + +#: menu.sh:1013 +msgid "Making ..." +msgstr "编译中 ..." + +#: menu.sh:1014 +msgid "Error" +msgstr "错误" + +#: menu.sh:1026 msgid "Switch LKM version:" msgstr "选择 LKM 版本:" -#: menu.sh:1008 +#: menu.sh:1027 msgid "HDD sort:" -msgstr "HDD 排序: " +msgstr "HDD 排序:" -#: menu.sh:1011 +#: menu.sh:1030 msgid "Switch direct boot:" msgstr "切换直接启动:" -#: menu.sh:1013 +#: menu.sh:1032 msgid "Timeout of get ip in boot:" msgstr "启动时获取 IP 的超时时间:" -#: menu.sh:1014 +#: menu.sh:1033 msgid "Timeout of boot wait:" msgstr "启动超时时间:" -#: menu.sh:1015 +#: menu.sh:1034 msgid "kernel switching method:" msgstr "内核切换的方式:" -#: menu.sh:1017 +#: menu.sh:1036 msgid "Reboot on kernel panic:" msgstr "内核恐慌时重新启动:" -#: menu.sh:1019 +#: menu.sh:1038 msgid "Set static IP" msgstr "设置静态 IP" -#: menu.sh:1020 +#: menu.sh:1039 msgid "Edit user config file manually" msgstr "手动编辑用户配置文件" -#: menu.sh:1021 +#: menu.sh:1040 msgid "Edit grub.cfg file manually" msgstr "手动编辑 grub.cfg 文件" -#: menu.sh:1022 +#: menu.sh:1041 msgid "Try to recovery a DSM installed system" msgstr "尝试恢复已安装 DSM 的系统" -#: menu.sh:1023 +#: menu.sh:1042 msgid "Show SATA(s) # ports and drives" msgstr "显示 SATA(s) # 端口和驱动器" -#: menu.sh:1025 +#: menu.sh:1044 msgid "show/modify the current pat data" msgstr "显示/修改当前 pat 下载链接" -#: menu.sh:1027 +#: menu.sh:1046 msgid "Allow downgrade installation" msgstr "允许降级安装" -#: menu.sh:1028 +#: menu.sh:1047 msgid "Format disk(s) # Without loader disk" msgstr "格式化磁盘(s) # 不含启动盘" -#: menu.sh:1029 +#: menu.sh:1048 msgid "Reset DSM system password" msgstr "重置 DSM 系统密码" -#: menu.sh:1030 +#: menu.sh:1049 msgid "Save modifications of '/opt/rr'" msgstr "保存'/opt/rr'的修改" -#: menu.sh:1032 +#: menu.sh:1051 msgid "Custom dts file # Need rebuild" msgstr "自定义 dts 文件 # 需要重新编译" -#: menu.sh:1035 +#: menu.sh:1054 msgid "Backup bootloader disk # test" msgstr "备份启动盘 # 测试" -#: menu.sh:1036 +#: menu.sh:1055 msgid "Restore bootloader disk # test" msgstr "恢复启动盘 # 测试" -#: menu.sh:1038 +#: menu.sh:1057 +msgid "Report bugs to the author" +msgstr "向作者报告错误" + +#: menu.sh:1058 msgid "Install development tools" msgstr "安装开发者工具" -#: menu.sh:1039 +#: menu.sh:1059 msgid "Show QR logo:" msgstr "显示 QR logo:" -#: menu.sh:1042 menu.sh:1066 menu.sh:1078 menu.sh:1098 menu.sh:1121 -#: menu.sh:1145 menu.sh:1209 menu.sh:1216 menu.sh:1234 menu.sh:1247 -#: menu.sh:1250 menu.sh:1260 menu.sh:1261 menu.sh:1266 menu.sh:1270 -#: menu.sh:1281 menu.sh:1283 menu.sh:1300 menu.sh:1305 menu.sh:1313 -#: menu.sh:1319 menu.sh:1332 menu.sh:1335 menu.sh:1341 menu.sh:1344 -#: menu.sh:1359 menu.sh:1364 menu.sh:1368 menu.sh:1383 menu.sh:1388 -#: menu.sh:1395 menu.sh:1399 menu.sh:1402 menu.sh:1407 menu.sh:1417 -#: menu.sh:1422 menu.sh:1428 menu.sh:1432 menu.sh:1449 menu.sh:1452 -#: menu.sh:1458 menu.sh:1466 menu.sh:1474 menu.sh:1481 menu.sh:1483 +#: menu.sh:1062 menu.sh:1086 menu.sh:1098 menu.sh:1118 menu.sh:1141 +#: menu.sh:1165 menu.sh:1229 menu.sh:1236 menu.sh:1254 menu.sh:1267 +#: menu.sh:1270 menu.sh:1280 menu.sh:1281 menu.sh:1286 menu.sh:1290 +#: menu.sh:1301 menu.sh:1303 menu.sh:1320 menu.sh:1325 menu.sh:1333 +#: menu.sh:1339 menu.sh:1352 menu.sh:1355 menu.sh:1359 menu.sh:1362 +#: menu.sh:1377 menu.sh:1382 menu.sh:1386 menu.sh:1401 menu.sh:1406 +#: menu.sh:1413 menu.sh:1417 menu.sh:1420 menu.sh:1425 menu.sh:1435 +#: menu.sh:1440 menu.sh:1446 menu.sh:1450 menu.sh:1467 menu.sh:1470 +#: menu.sh:1476 menu.sh:1484 menu.sh:1498 menu.sh:1502 menu.sh:1512 +#: menu.sh:1517 menu.sh:1524 menu.sh:1526 msgid "Advanced" msgstr "高级" -#: menu.sh:1043 +#: menu.sh:1063 msgid "Advanced option" msgstr "高级设置" -#: menu.sh:1067 menu.sh:1079 menu.sh:1099 +#: menu.sh:1087 menu.sh:1099 menu.sh:1119 msgid "Choose a time(seconds)" msgstr "选择一个时间(秒)" -#: menu.sh:1109 +#: menu.sh:1129 msgid "Temporary IP: (UI will not refresh)" msgstr "临时 IP: (UI 不会刷新)" -#: menu.sh:1146 +#: menu.sh:1166 msgid "Setting IP ..." msgstr "设置 IP.." -#: menu.sh:1207 +#: menu.sh:1227 msgid "\\nTotal of ports: %s\\n" msgstr "\\n端口总数: %s\\n" -#: menu.sh:1208 +#: menu.sh:1228 msgid "" "\\nPorts with color \\Z1red\\Zn as DUMMY, color \\Z2\\Zbgreen\\Zn has drive " "connected." msgstr "\\n\\Z1红色\\Zn 为模拟端口, \\Z2\\Zb绿色\\Zn 为已驱动的物理端口." -#: menu.sh:1215 +#: menu.sh:1235 msgid "pat: (editable)" msgstr "pat: (可编辑)" -#: menu.sh:1231 +#: menu.sh:1251 msgid "" "This feature will allow you to downgrade the installation by removing the " "VERSION file from the first partition of all disks.\\n" msgstr "此功能通过删除所有磁盘的第一个分区的 VERSION 文件来允许你降级安装.\\n" -#: menu.sh:1232 +#: menu.sh:1252 msgid "Therefore, please insert all disks before continuing.\\n" msgstr "因此, 请插入所有磁盘后再进行操作.\\n" -#: menu.sh:1233 menu.sh:1267 +#: menu.sh:1253 menu.sh:1287 msgid "" "Warning:\\nThis operation is irreversible. Please backup important data. Do " "you want to continue?" msgstr "警告:\\n该操作不可逆, 请提前备份重要数据. 是否继续?" -#: menu.sh:1248 +#: menu.sh:1268 msgid "Removing ..." msgstr "删除中..." -#: menu.sh:1249 +#: menu.sh:1269 msgid "Remove VERSION file for all disks completed." msgstr "已移除所有磁盘的 VERSION 文件." -#: menu.sh:1271 +#: menu.sh:1291 msgid "" "Warning:\\nThe current hds is in raid, do you still want to format them?" msgstr "警告:\\n当前的硬盘处于 raid 中,是否仍要格式化?" -#: menu.sh:1282 +#: menu.sh:1302 msgid "Formatting ..." msgstr "格式化中..." -#: menu.sh:1284 +#: menu.sh:1304 msgid "Formatting is complete." msgstr "格式化完成." -#: menu.sh:1301 +#: menu.sh:1321 msgid "The installed Syno system not found in the currently inserted disks!" msgstr "未在当前插入的硬盘中找到已安装的 syno 系统!" -#: menu.sh:1306 +#: menu.sh:1326 msgid "Choose a user name" msgstr "选择一个用户" -#: menu.sh:1314 +#: menu.sh:1334 msgid "Type a new password for user '%s'" msgstr "输入用户 '%s' 的新密码" -#: menu.sh:1320 +#: menu.sh:1340 msgid "Invalid password" msgstr "无效密码" -#: menu.sh:1333 +#: menu.sh:1353 msgid "Resetting ..." msgstr "重置中 ..." -#: menu.sh:1336 +#: menu.sh:1356 msgid "Password reset completed." msgstr "重置密码完成." -#: menu.sh:1342 menu.sh:1400 menu.sh:1453 +#: menu.sh:1360 menu.sh:1418 menu.sh:1471 msgid "" "Warning:\\nDo not terminate midway, otherwise it may cause damage to the RR. " "Do you want to continue?" msgstr "警告:\\n请不要中途停止, 否则将导致 RR 引导损毁, 是否继续?" -#: menu.sh:1345 +#: menu.sh:1363 msgid "Saving ..." msgstr "保存中..." -#: menu.sh:1360 +#: menu.sh:1378 msgid "Save is complete." msgstr "保存完成." -#: menu.sh:1369 +#: menu.sh:1387 msgid "" "Currently, only dts format files are supported. Please prepare and click to " "confirm uploading.\\n(saved in /mnt/p3/users/)" @@ -820,355 +864,398 @@ msgstr "" "目前, 只支持 dts 格式的文件, 请准备并点击确认上传.\\n(保存于 /mnt/p3/users/ " "中)" -#: menu.sh:1384 +#: menu.sh:1402 msgid "Not a valid dts file, please try again!" msgstr "dts 文件无效, 请重试!" -#: menu.sh:1389 +#: menu.sh:1407 msgid "A valid dts file, Automatically import at compile time." msgstr "dts 文件有效, 将在编译时自动导入." -#: menu.sh:1403 +#: menu.sh:1421 msgid "Backuping..." msgstr "备份中..." -#: menu.sh:1408 +#: menu.sh:1426 msgid "" "Failed to generate backup. There may be insufficient memory. Please clear " "the cache and try again!" msgstr "生成备份失败, 可能内存不足, 请清除缓存重试!" -#: menu.sh:1415 +#: menu.sh:1433 msgid "Click on the address above to download." msgstr "点击上面的地址下载." -#: menu.sh:1416 +#: menu.sh:1434 msgid "" "Please confirm the completion of the download before closing this window." msgstr "请确认下载完成再关闭此窗口." -#: menu.sh:1423 +#: menu.sh:1441 msgid "backup is complete." msgstr "备份完成." -#: menu.sh:1433 +#: menu.sh:1451 msgid "" "Please upload the backup file.\\nCurrently, zip(github) and img.gz(backup) " "compressed file formats are supported." msgstr "请上传备份的文件\\n当前支持 zip(github) 和 img.gz(backup) 格式." -#: menu.sh:1450 +#: menu.sh:1468 msgid "Not a valid .zip/.img.gz file, please try again!" msgstr "不是有效的 .zip/.img.gz 文件, 请重试!" -#: menu.sh:1459 +#: menu.sh:1477 msgid "Writing..." msgstr "写入中..." -#: menu.sh:1467 +#: menu.sh:1485 msgid "Restore bootloader disk with success to %s!\\nReboot?" msgstr "成功恢复启动盘到 %s!\\n重启?" -#: menu.sh:1475 +#: menu.sh:1499 +msgid "" +"Please via %s to download the logs,\\nAnd go to github to create an issue " +"and upload the logs." +msgstr "请通过 %s 下载日志 logs,\\n并前往 github 创建问题并上传日志 logs." + +#: menu.sh:1503 +msgid "Please go to github to create an issue and upload the logs." +msgstr "请前往 github 创建问题并上传日志 logs." + +#: menu.sh:1507 +msgid "\\Z1No logs found!\\Zn\\n\\n" +msgstr "\\Z1日志 logs 未找到!\\Zn\\n\\n" + +#: menu.sh:1508 +msgid "Please do as follows:\\n" +msgstr "请按如下操作:\\n" + +#: menu.sh:1509 +msgid " 1. Add dbgutils in addons and rebuild.\\n" +msgstr " 1. 在插件中添加 dbgutils 并重新编译.\\n" + +#: menu.sh:1510 +msgid " 2. Wait 10 minutes after booting.\\n" +msgstr " 2. 启动后等待10分钟.\\n" + +#: menu.sh:1511 +msgid " 3. Reboot into RR and go to this option.\\n" +msgstr " 3. 重启到 RR 并回到该选项.\\n" + +#: menu.sh:1518 msgid "" "This option only installs opkg package management, allowing you to install " "more tools for use and debugging. Do you want to continue?" msgstr "" "该选项仅安装 opkg 包管理工具, 使你能够安装更多的工具以供使用和调试, 是否继续?" -#: menu.sh:1482 +#: menu.sh:1525 msgid "opkg installing ..." msgstr "opkg 安装中 ..." -#: menu.sh:1484 +#: menu.sh:1527 msgid "" "opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." "bashrc'" msgstr "opkg 安装完成. 请重新链接 SSH/web, 或者执行 'source ~/.bashrc'" -#: menu.sh:1499 menu.sh:1536 menu.sh:1543 +#: menu.sh:1542 menu.sh:1577 menu.sh:1584 msgid "Try recovery DSM" msgstr "尝试恢复 DSM 系统" -#: menu.sh:1500 +#: menu.sh:1543 msgid "Trying to recovery a DSM installed system ..." msgstr "尝试恢复已安装的 DSM 系统中 ..." -#: menu.sh:1526 +#: menu.sh:1571 msgid "Found a installation:\\nModel: %s\\nProductversion: %s" msgstr "找到已安装:\\n型号: %s\\n版本: %s" -#: menu.sh:1530 +#: menu.sh:1575 msgid "\\nSerial: %s" msgstr "\\nSN: %s" -#: menu.sh:1544 +#: menu.sh:1585 msgid "Unfortunately I couldn't mount the DSM partition!" msgstr "很遗憾, 我无法挂载 DSM 分区!" -#: menu.sh:1552 menu.sh:1558 menu.sh:1581 +#: menu.sh:1593 menu.sh:1599 menu.sh:1622 msgid "Edit with caution" msgstr "请谨慎编辑" -#: menu.sh:1592 +#: menu.sh:1633 msgid "Alert" msgstr "警告" -#: menu.sh:1593 +#: menu.sh:1634 msgid "Config changed, would you like to rebuild the loader?" msgstr "配置已更改, 是否重新编译引导?" -#: menu.sh:1595 menu.sh:2002 menu.sh:2035 -msgid "Main menu" -msgstr "主菜单" - -#: menu.sh:1596 menu.sh:2036 -msgid "Making ..." -msgstr "编译中 ..." - -#: menu.sh:1606 menu.sh:1992 +#: menu.sh:1646 menu.sh:2032 msgid "Choose a language" msgstr "选择语言" -#: menu.sh:1620 +#: menu.sh:1660 msgid "Choose a layout" msgstr "选择布局" -#: menu.sh:1632 +#: menu.sh:1672 msgid "Choice a keymap" msgstr "选择键盘映射" -#: menu.sh:1651 menu.sh:1706 menu.sh:1757 menu.sh:1829 menu.sh:1832 -#: menu.sh:1835 menu.sh:1838 menu.sh:1845 menu.sh:1852 menu.sh:1859 -#: menu.sh:1866 +#: menu.sh:1691 menu.sh:1746 menu.sh:1797 menu.sh:1869 menu.sh:1872 +#: menu.sh:1875 menu.sh:1878 menu.sh:1885 menu.sh:1892 menu.sh:1899 +#: menu.sh:1906 msgid "Update %s" msgstr "更新 %s" -#: menu.sh:1654 +#: menu.sh:1694 msgid "Checking last version ..." msgstr "检测新版本中 ..." -#: menu.sh:1667 menu.sh:1670 +#: menu.sh:1707 menu.sh:1710 msgid "Error checking new version.\\nError: TAG is %s" msgstr "检测新版本错误.\\nError: TAG is %s" -#: menu.sh:1677 +#: menu.sh:1717 msgid "No new version." msgstr "没有新版本." -#: menu.sh:1681 +#: menu.sh:1721 msgid "No new version. Actual version is %s\\nForce update?" msgstr "没有新版本. 实际版本为 %s\\n强制更新?" -#: menu.sh:1690 +#: menu.sh:1730 msgid "Downloading ..." msgstr "下载中 ..." -#: menu.sh:1694 menu.sh:1697 +#: menu.sh:1734 menu.sh:1737 msgid "Error downloading new version.\\nError: %d:%d" msgstr "下载新版本错误.\\nError: %d:%d" -#: menu.sh:1708 menu.sh:1759 +#: menu.sh:1748 menu.sh:1799 msgid "Extracting last version" msgstr "解压新版本" -#: menu.sh:1712 +#: menu.sh:1752 msgid "Error extracting update file" msgstr "更新文件解压错误" -#: menu.sh:1719 +#: menu.sh:1759 msgid "Checksum do not match!" msgstr "Checksum 不匹配!" -#: menu.sh:1728 +#: menu.sh:1768 msgid "" "The current version does not support upgrading to the latest update.zip. " "Please remake the bootloader disk!" msgstr "当前版本不支持最新的 update.zip 升级, 请重新制作引导盘!" -#: menu.sh:1733 +#: menu.sh:1773 msgid "Installing new files ..." msgstr "安装更新中 ..." -#: menu.sh:1750 +#: menu.sh:1790 msgid "RR updated with success to %s!\\nReboot?" msgstr "RR 更新成功 %s!\\n重启?" -#: menu.sh:1765 +#: menu.sh:1805 msgid "Installing new %s ..." msgstr "安装新 %s 中 ..." -#: menu.sh:1794 menu.sh:1797 +#: menu.sh:1834 menu.sh:1837 msgid "%s updated with success!" msgstr "%s 更新成功!" -#: menu.sh:1811 +#: menu.sh:1851 msgid "Update all" msgstr "更新全部" -#: menu.sh:1812 +#: menu.sh:1852 msgid "Update RR" -msgstr "更新 RR " +msgstr "更新 RR" -#: menu.sh:1813 +#: menu.sh:1853 msgid "Update addons" msgstr "更新插件" -#: menu.sh:1814 +#: menu.sh:1854 msgid "Update modules" msgstr "更新模块" -#: menu.sh:1815 +#: menu.sh:1855 msgid "Update LKMs" msgstr "更新LKMs" -#: menu.sh:1817 +#: menu.sh:1857 msgid "Set proxy server" msgstr "设置代理" -#: menu.sh:1819 +#: menu.sh:1859 msgid "Local upload" msgstr "本地上传" -#: menu.sh:1820 +#: menu.sh:1860 msgid "Pre Release:" -msgstr "预发布: " +msgstr "预发布:" -#: menu.sh:1829 menu.sh:1852 +#: menu.sh:1869 menu.sh:1892 msgid "addons" msgstr "插件" -#: menu.sh:1832 menu.sh:1859 +#: menu.sh:1872 menu.sh:1899 msgid "modules" msgstr "模块" -#: menu.sh:1835 menu.sh:1866 +#: menu.sh:1875 menu.sh:1906 msgid "LKMs" msgstr "LKMs" -#: menu.sh:1838 menu.sh:1845 +#: menu.sh:1878 menu.sh:1885 msgid "RR" msgstr "RR" -#: menu.sh:1875 menu.sh:1886 menu.sh:1897 menu.sh:1907 menu.sh:1924 -#: menu.sh:1938 +#: menu.sh:1915 menu.sh:1926 menu.sh:1937 menu.sh:1947 menu.sh:1964 +#: menu.sh:1978 msgid "Update" msgstr "更新" -#: menu.sh:1876 +#: menu.sh:1916 msgid "Please enter a proxy server url" msgstr "请输入代理服务器 url" -#: menu.sh:1887 +#: menu.sh:1927 msgid "Invalid proxy server url, continue?" msgstr "无效的代理服务器 url, 是否继续?" -#: menu.sh:1902 +#: menu.sh:1942 msgid "" "Please keep the attachment name consistent with the attachment name on " "Github.\\n" msgstr "请保持附件名称与 github 上附件名称一致.\\n" -#: menu.sh:1903 +#: menu.sh:1943 msgid "Upload update.zip will update RR.\\n" msgstr "上传 update.zip 将更新 RR.\\n" -#: menu.sh:1904 +#: menu.sh:1944 msgid "Upload addons.zip will update Addons.\\n" msgstr "上传 addons.zip 将更新 插件.\\n" -#: menu.sh:1905 +#: menu.sh:1945 msgid "Upload modules.zip will update Modules.\\n" msgstr "上传 modules.zip 将更新 模块.\\n" -#: menu.sh:1906 +#: menu.sh:1946 msgid "Upload rp-lkms.zip will update LKMs.\\n" msgstr "上传 rp-lkms.zip 将更新 LKMs.\\n" -#: menu.sh:1955 +#: menu.sh:1995 msgid "This person is very lazy and hasn't written anything." msgstr "这个人很懒, 什么也没有写." -#: menu.sh:1956 +#: menu.sh:1996 msgid "Edit" msgstr "编辑" -#: menu.sh:1973 +#: menu.sh:2013 msgid "Choose a model" msgstr "选择型号" -#: menu.sh:1975 +#: menu.sh:2015 msgid "Choose a version" msgstr "选择版本" -#: menu.sh:1977 +#: menu.sh:2017 msgid "Addons menu" msgstr "插件" -#: menu.sh:1978 +#: menu.sh:2018 msgid "Modules menu" msgstr "模块" -#: menu.sh:1979 +#: menu.sh:2019 msgid "Cmdline menu" msgstr "设置 Cmdline" -#: menu.sh:1980 +#: menu.sh:2020 msgid "Synoinfo menu" msgstr "设置 Synoinfo" -#: menu.sh:1983 +#: menu.sh:2023 msgid "Advanced menu" msgstr "高级设置" -#: menu.sh:1986 +#: menu.sh:2026 msgid "Build the loader" msgstr "编译引导" -#: menu.sh:1990 +#: menu.sh:2030 msgid "Boot the loader" msgstr "启动" -#: menu.sh:1993 +#: menu.sh:2033 msgid "Choose a keymap" msgstr "选择键盘" -#: menu.sh:1995 +#: menu.sh:2035 msgid "Clean disk cache" msgstr "清除磁盘缓存" -#: menu.sh:1997 +#: menu.sh:2037 msgid "Update menu" msgstr "更新" -#: menu.sh:1998 +#: menu.sh:2038 msgid "Notepad" msgstr "备注" -#: menu.sh:2067 +#: menu.sh:2106 msgid "Choose a action" msgstr "选择动作" -#: menu.sh:2068 +#: menu.sh:2107 msgid "Poweroff" msgstr "关机" -#: menu.sh:2069 +#: menu.sh:2108 msgid "Reboot" msgstr "重启" -#: menu.sh:2070 +#: menu.sh:2109 msgid "Reboot to RR" msgstr "重启到 RR" -#: menu.sh:2071 +#: menu.sh:2110 msgid "Back to shell" msgstr "退出到 shell" -#: menu.sh:2097 +#: menu.sh:2136 msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu" msgstr "执行 \\033[1;32mmenu.sh\\033[0m 重新进入设置菜单" +#~ msgid "Show all available addons" +#~ msgstr "显示所有可用插件" + +#~ msgid "Show user added cmdline" +#~ msgstr "显示用户添加的 cmdline 参数" + +#~ msgid "Type a name of cmdline" +#~ msgstr "输入参数的名称" + +#~ msgid "Type a value of '%s' cmdline" +#~ msgstr "输入 '%s' 参数的值" + +#~ msgid "Show synoinfo entries" +#~ msgstr "显示 Synoinfo 参数" + +#~ msgid "Type a name of synoinfo entry" +#~ msgstr "输入参数的名称" + +#~ msgid "Type a value of '%s' synoinfo entry" +#~ msgstr "输入 '%s' 参数的值" + #~ msgid "" #~ "This version only support usb startup, Please select another version or " #~ "switch the startup mode." diff --git a/files/initrd/opt/rr/lang/zh_HK.po b/files/initrd/opt/rr/lang/zh_HK.po index 819b9e79..e5b759be 100644 --- a/files/initrd/opt/rr/lang/zh_HK.po +++ b/files/initrd/opt/rr/lang/zh_HK.po @@ -7,21 +7,21 @@ msgid "" msgstr "" "Project-Id-Version: RR\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-29 20:43+0800\n" -"PO-Revision-Date: 2023-10-29 20:50+0800\n" +"POT-Creation-Date: 2023-10-31 17:00+0800\n" +"PO-Revision-Date: 2023-10-31 17:01+0800\n" "Last-Translator: ing \n" "Language-Team: Chinese (HongKong) \n" "Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4\n" +"X-Generator: Poedit 3.4.1\n" #: boot.sh:8 init.sh:9 menu.sh:9 msgid "Loader is not init!" msgstr "引導未初始化!" -#: boot.sh:10 init.sh:103 +#: boot.sh:10 init.sh:104 msgid "Loader is not configured!" msgstr "引導未設置!" @@ -33,120 +33,115 @@ msgstr "Welcome to %s" msgid "DSM zImage changed" msgstr "DSM zImage 已變更" -#: boot.sh:36 boot.sh:49 menu.sh:821 menu.sh:830 menu.sh:855 menu.sh:885 -#: menu.sh:897 menu.sh:921 menu.sh:929 menu.sh:961 menu.sh:978 menu.sh:985 -msgid "Error" -msgstr "錯誤" - -#: boot.sh:37 menu.sh:979 +#: boot.sh:36 menu.sh:993 msgid "" "zImage not patched,\\nPlease upgrade the bootloader version and try again." "\\nPatch error:\\n" msgstr "zImage patch 失敗,\\n請升級引導版本並重試.\\nPatch 錯誤:\\n" -#: boot.sh:46 +#: boot.sh:45 msgid "DSM Ramdisk changed" msgstr "DSM Ramdisk 已變更" -#: boot.sh:50 menu.sh:986 +#: boot.sh:48 menu.sh:999 msgid "" "Ramdisk not patched,\\nPlease upgrade the bootloader version and try again." "\\nPatch error:\\n" msgstr "Ramdisk patch 失敗,\\n請升級引導版本並重試.\\nPatch 錯誤:\\n" -#: boot.sh:69 +#: boot.sh:67 msgid "Model:" msgstr "型號: " -#: boot.sh:70 +#: boot.sh:68 msgid "Build:" msgstr "版本: " -#: boot.sh:71 +#: boot.sh:69 msgid "LKM: " msgstr "LKM: " -#: boot.sh:72 +#: boot.sh:70 msgid "DMI: " msgstr "DMI: " -#: boot.sh:73 +#: boot.sh:71 msgid "CPU: " msgstr "CPU: " -#: boot.sh:74 +#: boot.sh:72 msgid "MEM: " msgstr "MEM: " -#: boot.sh:77 +#: boot.sh:75 msgid "" "The current version of bootloader does not support booting %s-%s, please " "upgrade and rebuild." msgstr "當前版本的開機磁碟不支持引導 %s-%s, 請升級並重新編譯." -#: boot.sh:89 +#: boot.sh:87 msgid "" "Please insert at least one sata/scsi disk for system installation, except " "for the bootloader disk." msgstr "除引導盤外, 請至少插入一塊 sata/scsi 磁片進行系統安裝." -#: boot.sh:152 +#: boot.sh:150 msgid "Cmdline:\\n" msgstr "Cmdline:\\n" -#: boot.sh:158 +#: boot.sh:156 msgid "Reboot to boot directly in DSM" msgstr "重啓並直接進入 DSM 引導" -#: boot.sh:164 init.sh:116 +#: boot.sh:162 init.sh:117 msgid "Detected %s network cards." msgstr "檢測到 %s 個網卡." -#: boot.sh:165 init.sh:117 +#: boot.sh:163 init.sh:118 msgid "Checking Connect." msgstr "檢查連接." -#: boot.sh:185 +#: boot.sh:183 msgid "Waiting IP.(For reference only)" msgstr "獲取 IP.(僅供參考)" -#: boot.sh:192 init.sh:142 +#: boot.sh:190 init.sh:143 msgid "DOWN" msgstr "關閉" -#: boot.sh:196 init.sh:146 +#: boot.sh:194 init.sh:147 msgid "NOT CONNECTED" msgstr "未連接" -#: boot.sh:200 init.sh:150 +#: boot.sh:198 init.sh:151 msgid "TIMEOUT (Please check the IP on the router.)" msgstr "超時 (請檢查路由器上的 IP.)" -#: boot.sh:206 +#: boot.sh:204 msgid "Access \\033[1;34mhttp://%s:5000\\033[0m to connect the DSM via web." msgstr "在瀏覽器中訪問 \\033[1;34mhttp://%s:5000\\033[0m 連結 DSM." -#: boot.sh:218 +#: boot.sh:216 msgid "%2ds (Changing access(ssh/web) status will interrupt boot)" msgstr "%2ds ((ssh/web)链接状态改變將中斷啟動)" -#: boot.sh:222 +#: boot.sh:220 msgid "access(ssh/web) status has changed and booting is interrupted." msgstr "(ssh/web)链接狀態已改變, 啟動被中斷." -#: boot.sh:232 +#: boot.sh:230 msgid "Loading DSM kernel..." msgstr "加載 DSM kernel..." -#: boot.sh:245 +#: boot.sh:243 msgid "Warning, running kexec with --noefi param, strange things will happen!!" msgstr "警告, 使用'--noefi'參數運行'kexec', 可能有不好的事情發生!!" -#: boot.sh:250 +#: boot.sh:248 msgid "Booting..." msgstr "引導中..." -#: boot.sh:252 +#: boot.sh:250 msgid "" "[This interface will not be operational. Please wait a few minutes.\\nFind " "DSM via http://find.synology.com/ or Synology Assistant and connect.]" @@ -158,250 +153,251 @@ msgstr "" msgid "Network devices not found!" msgstr "網卡未找到!" -#: init.sh:80 +#: init.sh:81 msgid "Loader disk neither USB or SATA/SCSI/NVME DoM" msgstr "引導磁碟僅支持 USB 或者 SATA/SCSI/NVME DoM" -#: init.sh:88 +#: init.sh:89 msgid "Loader disk:" msgstr "引導盤:" -#: init.sh:96 +#: init.sh:97 msgid "Loading keymap" msgstr "加載 keymap" -#: init.sh:106 +#: init.sh:107 msgid "User requested edit settings." msgstr "用戶觸發編輯設定." -#: init.sh:135 +#: init.sh:136 msgid "Waiting IP." msgstr "獲取 IP." -#: init.sh:156 +#: init.sh:157 msgid "" "Access \\033[1;34mhttp://%s:7681\\033[0m to configure the loader via web " "terminal." msgstr "" "在瀏覽器中訪問 \\033[1;34mhttp://%s:7681\\033[0m 進入 WEB 終端進行配寘." -#: init.sh:166 +#: init.sh:167 msgid "Call \\033[1;32mmenu.sh\\033[0m to configure loader" msgstr "執行 \\033[1;32mmenu.sh\\033[0m 進入設定選單" -#: init.sh:168 +#: init.sh:169 msgid "User config is on" msgstr "用戶設定檔位於" -#: init.sh:169 +#: init.sh:170 msgid "Default SSH Root password is" msgstr "默認 SSH 的 root 密碼為" -#: init.sh:183 +#: init.sh:184 msgid "" "You have less than 4GB of RAM, if errors occur in loader creation, please " "increase the amount of memory." msgstr "您的 RAM 不足 4GB, 如果在創建引導時出現錯誤, 請新增記憶體." -#: menu.sh:90 +#: menu.sh:92 msgid "Model" msgstr "型號" -#: menu.sh:91 +#: menu.sh:93 msgid "Reading models" msgstr "讀取型號" -#: menu.sh:101 +#: menu.sh:103 msgid "Compatibility judgment" msgstr "相容性判斷" -#: menu.sh:122 +#: menu.sh:124 msgid "Disable flags restriction" msgstr "禁用標誌限制" -#: menu.sh:123 +#: menu.sh:125 msgid "Show all models" msgstr "顯示所有型號" -#: menu.sh:125 +#: menu.sh:127 msgid "Choose the model" msgstr "選擇型號" -#: menu.sh:213 +#: menu.sh:215 msgid "Choose a product version" msgstr "選擇版本" -#: menu.sh:223 menu.sh:229 menu.sh:240 menu.sh:266 menu.sh:286 +#: menu.sh:225 menu.sh:231 menu.sh:242 menu.sh:268 menu.sh:288 msgid "Product Version" msgstr "版本" -#: menu.sh:224 +#: menu.sh:226 msgid "" "The current version has been set to %s. Do you want to reset the version?" msgstr "當前版本已設定為 %s. 是否要重置版本?" -#: menu.sh:230 +#: menu.sh:232 msgid "" "This version does not support UEFI startup, Please select another version or " "switch the startup mode." msgstr "該版本不支持 UEFI 啟動, 請選擇其他版本或者切換啟動模式." -#: menu.sh:241 +#: menu.sh:243 msgid "Get pat data ..." msgstr "獲取 pat 數據 ..." -#: menu.sh:260 +#: menu.sh:262 msgid "" "Failed to get pat data,\\nPlease manually fill in the URL and md5sum of the " "corresponding version of pat." msgstr "獲取 pat 數據失敗,\\n請手動填寫相應版本 pat 的 URL 和 MD5." -#: menu.sh:264 +#: menu.sh:266 msgid "Successfully to get pat data,\\nPlease confirm or modify as needed." msgstr "獲取 pat 數據成功,\\n請確認或者按需修改." -#: menu.sh:267 +#: menu.sh:269 msgid "Retry" msgstr "重試" -#: menu.sh:287 +#: menu.sh:289 msgid "Reconfiguring Synoinfo, Addons and Modules" msgstr "重新配寘 Syninfo, 挿件和模塊" -#: menu.sh:330 menu.sh:468 menu.sh:605 menu.sh:722 menu.sh:1824 +#: menu.sh:334 menu.sh:464 menu.sh:595 menu.sh:721 menu.sh:1864 msgid "Choose a option" msgstr "設定" -#: menu.sh:331 +#: menu.sh:335 msgid "Add an addon" msgstr "添加挿件" -#: menu.sh:332 -msgid "Delete addon(s)" -msgstr "删除挿件(s)" +#: menu.sh:336 +msgid "Delete addons" +msgstr "删除挿件" -#: menu.sh:333 -msgid "Show user addons" -msgstr "顯示用戶挿件" +#: menu.sh:337 +msgid "Show all addons" +msgstr "顯示所有挿件" -#: menu.sh:334 -msgid "Show all available addons" -msgstr "顯示所有可用挿件" - -#: menu.sh:335 +#: menu.sh:338 msgid "Upload a external addon" msgstr "上傳外部挿件" -#: menu.sh:336 menu.sh:473 menu.sh:601 menu.sh:717 menu.sh:1040 menu.sh:1821 -#: menu.sh:1999 menu.sh:2072 +#: menu.sh:339 menu.sh:469 menu.sh:593 menu.sh:719 menu.sh:1060 menu.sh:1861 +#: menu.sh:2039 menu.sh:2111 msgid "Exit" msgstr "退出" -#: menu.sh:348 menu.sh:353 menu.sh:359 menu.sh:371 menu.sh:379 menu.sh:397 -#: menu.sh:411 menu.sh:416 menu.sh:420 menu.sh:434 menu.sh:438 menu.sh:446 -#: menu.sh:449 +#: menu.sh:351 menu.sh:356 menu.sh:362 menu.sh:374 menu.sh:382 menu.sh:406 +#: menu.sh:411 menu.sh:415 menu.sh:429 menu.sh:433 menu.sh:441 menu.sh:444 msgid "Addons" msgstr "挿件" -#: menu.sh:349 +#: menu.sh:352 msgid "No available addons to add" msgstr "沒有可用的挿件可添加" -#: menu.sh:354 +#: menu.sh:357 msgid "Select an addon" msgstr "選擇挿件" -#: menu.sh:360 +#: menu.sh:363 msgid "Type a optional params to addon" msgstr "輸入挿件的加載參數" -#: menu.sh:372 +#: menu.sh:375 msgid "No user addons to remove" msgstr "沒有要删除的用戶挿件" -#: menu.sh:380 +#: menu.sh:383 msgid "Select addon to remove" msgstr "選擇要删除的挿件" -#: menu.sh:417 menu.sh:1365 menu.sh:1396 menu.sh:1429 menu.sh:1898 +#: menu.sh:397 +msgid "" +"Name with color \"\\Z4blue\\Zn\" have been added, with color \"black\" are " +"not added.\\n\\n" +msgstr "名稱顏色為\"\\Z4藍色\\Zn\"的為已添加, 顏色為\"黑色\"的為未添加..\\n\\n" + +#: menu.sh:412 menu.sh:1383 menu.sh:1414 menu.sh:1447 menu.sh:1938 msgid "This feature is only available when accessed via web/ssh." msgstr "此功能僅通過 web/ssh 訪問時可用." -#: menu.sh:421 +#: menu.sh:416 msgid "Please upload the *.addons file." msgstr "請上傳 *.addons 檔案." -#: menu.sh:435 menu.sh:573 menu.sh:1925 menu.sh:1939 +#: menu.sh:430 menu.sh:569 menu.sh:1965 menu.sh:1979 msgid "Not a valid file, please try again!" msgstr "不是有效的檔案, 請重試!" -#: menu.sh:439 +#: menu.sh:434 msgid "The addon already exists. Do you want to overwrite it?" msgstr "該挿件已存在, 是否覆盖?" -#: menu.sh:447 +#: menu.sh:442 msgid "Addon '%s' added to loader, Please enable it in 'Add an addon' menu." msgstr "挿件 '%s' 已添加到引導中, 請在'添加挿件'選單中開啟." -#: menu.sh:450 +#: menu.sh:445 msgid "File format not recognized!" msgstr "檔案格式無法識別!" -#: menu.sh:469 +#: menu.sh:465 msgid "Show/Select modules" msgstr "顯示/選擇模塊" -#: menu.sh:470 +#: menu.sh:466 msgid "Select loaded modules" msgstr "選擇已識別的模塊" -#: menu.sh:471 +#: menu.sh:467 msgid "Upload a external module" msgstr "上傳一個外部模塊" -#: menu.sh:472 +#: menu.sh:468 msgid "Priority use of official drivers:" msgstr "優先使用官方驅動:" -#: menu.sh:479 menu.sh:492 menu.sh:529 menu.sh:549 menu.sh:552 menu.sh:568 -#: menu.sh:572 +#: menu.sh:475 menu.sh:488 menu.sh:525 menu.sh:545 menu.sh:548 menu.sh:564 +#: menu.sh:568 msgid "Modules" msgstr "模塊" -#: menu.sh:480 +#: menu.sh:476 msgid "Reading modules ..." msgstr "讀取模塊中 ..." -#: menu.sh:493 +#: menu.sh:489 msgid "Select all" msgstr "全選全部" -#: menu.sh:494 +#: menu.sh:490 msgid "Deselect all" msgstr "取消全選" -#: menu.sh:495 +#: menu.sh:491 msgid "Select modules to include" msgstr "選擇要加載的挿件" -#: menu.sh:530 +#: menu.sh:526 msgid "Selecting loaded modules" msgstr "選擇已識別的模塊" -#: menu.sh:544 +#: menu.sh:540 msgid "" "This function is experimental and dangerous. If you don't know much, please " "exit.\\n" msgstr "該功能是實驗性的且危險的, 如果你不瞭解, 請退出.\\n" -#: menu.sh:545 +#: menu.sh:541 msgid "" "The imported .ko of this function will be implanted into the corresponding " "arch's modules package, which will affect all models of the arch.\\n" msgstr "" "該功能導入 .ko 將被植入相應的架構的模塊包中, 這將影響該架構的所有型號.\\n" -#: menu.sh:546 +#: menu.sh:542 msgid "" "This program will not determine the availability of imported modules or even " "make type judgments, as please double check if it is correct.\\n" @@ -409,7 +405,7 @@ msgstr "" "該程式不會判斷導入的驅動模塊的可用性, 甚至不會做類型判斷, 因從請你再三確認是" "否正確.\\n" -#: menu.sh:547 +#: menu.sh:543 msgid "" "If you want to remove it, please go to the \"Update Menu\" -> \"Update " "modules\" to forcibly update the modules. All imports will be reset.\\n" @@ -417,402 +413,450 @@ msgstr "" "如果您想删除它, 請轉到 \"更新\"->\"更新模塊\" 強制更新模塊, 所有導入都將被重" "置.\\n" -#: menu.sh:548 +#: menu.sh:544 msgid "Do you want to continue?" msgstr "是否繼續?" -#: menu.sh:553 +#: menu.sh:549 msgid "Please upload the *.ko file." msgstr "請上傳 *.ko 檔案." -#: menu.sh:569 +#: menu.sh:565 msgid "Module '%s' added to %s-%s" msgstr "模塊 '%s' 已添加到 %s-%s" -#: menu.sh:594 -msgid "Add/edit a cmdline item" +#: menu.sh:587 +msgid "Add/Edit a cmdline item" msgstr "添加/編輯 cmdline 參數" -#: menu.sh:595 -msgid "Delete cmdline item(s)" -msgstr "删除 cmdline 參數(s)" +#: menu.sh:588 +msgid "Show/Delete cmdline items" +msgstr "顯示/删除 cmdline 參數" -#: menu.sh:597 +#: menu.sh:590 msgid "Define SN/MAC" msgstr "自定義 SN/MAC" -#: menu.sh:599 -msgid "Show user added cmdline" -msgstr "顯示用戶添加的 cmdline 參數" - -#: menu.sh:600 +#: menu.sh:592 msgid "Show model inherent cmdline" msgstr "顯示型號默認的 cmdline 參數" -#: menu.sh:610 menu.sh:616 menu.sh:626 menu.sh:634 menu.sh:650 menu.sh:660 -#: menu.sh:689 menu.sh:697 +#: menu.sh:601 +msgid "Commonly used cmdlines:\\n" +msgstr "常用 cmdlines:\\n" + +#: menu.sh:602 +msgid "" +" * \\Z4disable_mtrr_trim=\\Zn\\n disables kernel trim any uncacheable " +"memory out.\\n" +msgstr " * \\Z4disable_mtrr_trim=\\Zn\\n 禁用內核修剪任何不可緩存的內存.\\n" + +#: menu.sh:603 +msgid "" +" * \\Z4\"intel_idle.max_cstate\"=1\\Zn\\n Set the maximum C-state depth " +"allowed by the intel_idle driver.\\n" +msgstr "" +" * \\Z4\"intel_idle.max_cstate\"=1\\Zn\\n 設定 intel_idle 驅動程式允許使用" +"的最大 C-state 深度.\\n" + +#: menu.sh:604 +msgid " * \\Z4SataPortMap=??\\Zn\\n Sata Port Map.\\n" +msgstr " * \\Z4SataPortMap=??\\Zn\\n Sata Port Map.\\n" + +#: menu.sh:605 +msgid "" +" * \\Z4DiskIdxMap=??\\Zn\\n Disk Index Map, Modify disk name sequence.\\n" +msgstr " * \\Z4DiskIdxMap=??\\Zn\\n Disk Index Map, 修改磁碟名稱順序.\\n" + +#: menu.sh:606 menu.sh:732 +msgid "\\nEnter the parameter name and value you need to add.\\n" +msgstr "\\n輸入需要新增的參數名稱和值.\\n" + +#: menu.sh:609 menu.sh:618 menu.sh:642 menu.sh:650 menu.sh:666 menu.sh:676 +#: menu.sh:705 menu.sh:735 menu.sh:744 msgid "Cmdline" msgstr "Cmdline" -#: menu.sh:611 -msgid "Type a name of cmdline" -msgstr "輸入參數的名稱" +#: menu.sh:619 menu.sh:745 +msgid "Invalid parameter name, retry?" +msgstr "無效的數名稱, 重試?" -#: menu.sh:617 -msgid "Type a value of '%s' cmdline" -msgstr "輸入 '%s' 參數的值" - -#: menu.sh:627 +#: menu.sh:643 msgid "No user cmdline to remove" msgstr "沒有 cmdline 參數被删除" -#: menu.sh:635 +#: menu.sh:651 msgid "Select cmdline to remove" msgstr "選擇要删除的參數" -#: menu.sh:646 +#: menu.sh:662 msgid "Note: (MAC will not be set to NIC)" msgstr "注意: (MAC 不會設定到 NIC)" -#: menu.sh:651 +#: menu.sh:667 msgid "Random" msgstr "隨機" -#: menu.sh:661 +#: menu.sh:677 msgid "Invalid SN/MAC, retry?" msgstr "無效的 SN/MAC, 重試?" -#: menu.sh:714 +#: menu.sh:717 msgid "Add/edit a synoinfo item" msgstr "添加/編輯 Synoinfo 參數" -#: menu.sh:715 -msgid "Delete synoinfo item(s)" -msgstr "删除 Synoinfo 參數(s)" +#: menu.sh:718 +msgid "Show/Delete synoinfo items" +msgstr "顯示/删除 Synoinfo 參數" -#: menu.sh:716 -msgid "Show synoinfo entries" -msgstr "顯示 Synoinfo 參數" +#: menu.sh:727 +msgid "Commonly used synoinfo:\\n" +msgstr "常用 synoinfo:\\n" -#: menu.sh:727 menu.sh:733 menu.sh:744 menu.sh:752 menu.sh:769 +#: menu.sh:728 +msgid " * \\Z4maxdisks=??\\Zn\\n Maximum number of disks supported.\\n" +msgstr " * \\Z4maxdisks=??\\Zn\\n 最大硬碟數.\\n" + +#: menu.sh:729 +msgid " * \\Z4internalportcfg=0x????\\Zn\\n Internal(sata) disks mask.\\n" +msgstr " * \\Z4internalportcfg=0x????\\Zn\\n Internal(sata) 磁碟遮罩.\\n" + +#: menu.sh:730 +msgid " * \\Z4esataportcfg=0x????\\Zn\\n Esata disks mask.\\n" +msgstr " * \\Z4esataportcfg=0x????\\Zn\\n Esata 磁碟遮罩.\\n" + +#: menu.sh:731 +msgid " * \\Z4usbportcfg=0x????\\Zn\\n USB disks mask.\\n" +msgstr " * \\Z4usbportcfg=0x????\\Zn\\n USB 磁碟遮罩.\\n" + +#: menu.sh:769 menu.sh:777 msgid "Synoinfo" msgstr "Synoinfo" -#: menu.sh:728 -msgid "Type a name of synoinfo entry" -msgstr "輸入參數的名稱" - -#: menu.sh:734 -msgid "Type a value of '%s' synoinfo entry" -msgstr "輸入 '%s' 參數的值”" - -#: menu.sh:745 +#: menu.sh:770 msgid "No synoinfo entries to remove" msgstr "沒有 Synoinfo 參數被删除" -#: menu.sh:753 +#: menu.sh:778 msgid "Select synoinfo entry to remove" msgstr "選擇要删除的參數" -#: menu.sh:793 +#: menu.sh:811 msgid "%s cached." msgstr "%s 已緩存." -#: menu.sh:797 +#: menu.sh:815 msgid "Cleaning cache ..." msgstr "清除緩存 ..." -#: menu.sh:805 +#: menu.sh:823 msgid "" "Based on the current network situation, switch to %s mirror to downloading." msgstr "根據當前的網絡狀況, 已切換到 %s 鏡像伺服器進行下載." -#: menu.sh:809 +#: menu.sh:827 msgid "Downloading %s ..." msgstr "下載 %s 中 ..." -#: menu.sh:820 menu.sh:884 +#: menu.sh:838 menu.sh:899 msgid "Check internet or cache disk space.\\nError: %d:%d" msgstr "請檢查網際網路或磁碟空間.\\n錯誤: %d:%d" -#: menu.sh:827 +#: menu.sh:844 msgid "Checking hash of %s: " msgstr "檢查 %s 的 hash: " -#: menu.sh:831 +#: menu.sh:847 msgid "" "md5 hash of pat not match, Please reget pat data from the version menu and " "try again!" msgstr "pat 的 md5 Hash 不匹配, 請在版本選單中重新獲取 pat 數據後重試!" -#: menu.sh:834 menu.sh:938 menu.sh:948 +#: menu.sh:850 menu.sh:950 menu.sh:960 msgid "OK" msgstr "OK" -#: menu.sh:838 +#: menu.sh:854 msgid "Disassembling %s: " msgstr "解壓縮 %s: " -#: menu.sh:843 +#: menu.sh:859 msgid "Uncompressed tar" msgstr "未壓縮 tar" -#: menu.sh:847 +#: menu.sh:863 msgid "Compressed tar" msgstr "已壓縮 tar" -#: menu.sh:851 +#: menu.sh:867 msgid "Encrypted" msgstr "已加密" -#: menu.sh:856 +#: menu.sh:871 msgid "" "Could not determine if pat file is encrypted or not, maybe corrupted, try " "again!" msgstr "無法確定 pat 檔案是否加密, 可能已損壞, 請重試!" -#: menu.sh:866 +#: menu.sh:881 msgid "Extractor cached." msgstr "已存在解密程式." -#: menu.sh:873 +#: menu.sh:888 msgid "Downloading old pat to extract synology .pat extractor..." msgstr "下載舊 pat, 選取 .pat 解密程式中..." -#: menu.sh:915 menu.sh:918 +#: menu.sh:928 menu.sh:931 msgid "Extracting..." msgstr "解壓中..." -#: menu.sh:930 +#: menu.sh:942 msgid "pat Invalid, try again!" msgstr "無效的 pat, 請重試!" -#: menu.sh:933 +#: menu.sh:945 msgid "Setting hash: " msgstr "設定 hash: " -#: menu.sh:940 +#: menu.sh:952 msgid "Copying files: " msgstr "拷貝檔案: " -#: menu.sh:962 +#: menu.sh:977 msgid "Addon %s not found!" msgstr "挿件 %s 未找到!" -#: menu.sh:993 menu.sh:2051 +#: menu.sh:1006 menu.sh:2090 msgid "Cleaning ..." msgstr "清除中 ..." -#: menu.sh:995 +#: menu.sh:1008 msgid "Ready!" msgstr "已就绪!" -#: menu.sh:1007 +#: menu.sh:1012 menu.sh:2042 +msgid "Main menu" +msgstr "主選單" + +#: menu.sh:1013 +msgid "Making ..." +msgstr "編譯中 ..." + +#: menu.sh:1014 +msgid "Error" +msgstr "錯誤" + +#: menu.sh:1026 msgid "Switch LKM version:" msgstr "選擇 LKM 版本:" -#: menu.sh:1008 +#: menu.sh:1027 msgid "HDD sort:" -msgstr "HDD 排序: " +msgstr "HDD 排序:" -#: menu.sh:1011 +#: menu.sh:1030 msgid "Switch direct boot:" msgstr "切換直接啟動:" -#: menu.sh:1013 +#: menu.sh:1032 msgid "Timeout of get ip in boot:" msgstr "啟動時取得 IP 的超時時間:" -#: menu.sh:1014 +#: menu.sh:1033 msgid "Timeout of boot wait:" msgstr "啟動超時時間:" -#: menu.sh:1015 +#: menu.sh:1034 msgid "kernel switching method:" msgstr "內核切換的管道:" -#: menu.sh:1017 +#: menu.sh:1036 msgid "Reboot on kernel panic:" msgstr "內核恐慌時重新啟動:" -#: menu.sh:1019 +#: menu.sh:1038 msgid "Set static IP" msgstr "設定靜態 IP" -#: menu.sh:1020 +#: menu.sh:1039 msgid "Edit user config file manually" msgstr "編輯用戶設定檔" -#: menu.sh:1021 +#: menu.sh:1040 msgid "Edit grub.cfg file manually" msgstr "編輯 grub.cfg" -#: menu.sh:1022 +#: menu.sh:1041 msgid "Try to recovery a DSM installed system" msgstr "嘗試恢復已安裝 DSM 的系統" -#: menu.sh:1023 +#: menu.sh:1042 msgid "Show SATA(s) # ports and drives" msgstr "顯示 SATA(s) # 埠和驅動器" -#: menu.sh:1025 +#: menu.sh:1044 msgid "show/modify the current pat data" msgstr "顯示/修改當前 pat 下載連結" -#: menu.sh:1027 +#: menu.sh:1046 msgid "Allow downgrade installation" msgstr "允許降級安裝" -#: menu.sh:1028 +#: menu.sh:1047 msgid "Format disk(s) # Without loader disk" msgstr "格式化磁碟(s) # 不含開機磁碟" -#: menu.sh:1029 +#: menu.sh:1048 msgid "Reset DSM system password" msgstr "重置 DSM 系統密碼" -#: menu.sh:1030 +#: menu.sh:1049 msgid "Save modifications of '/opt/rr'" msgstr "保存'/opt/rr'的修改" -#: menu.sh:1032 +#: menu.sh:1051 msgid "Custom dts file # Need rebuild" msgstr "自定義dts檔案 # 需要重新編譯" -#: menu.sh:1035 +#: menu.sh:1054 msgid "Backup bootloader disk # test" msgstr "備份開機磁碟 # 測試" -#: menu.sh:1036 +#: menu.sh:1055 msgid "Restore bootloader disk # test" msgstr "恢復開機磁碟 # 測試" -#: menu.sh:1038 +#: menu.sh:1057 +msgid "Report bugs to the author" +msgstr "向作者报告错误" + +#: menu.sh:1058 msgid "Install development tools" msgstr "安裝開發者工具" -#: menu.sh:1039 +#: menu.sh:1059 msgid "Show QR logo:" msgstr "顯示 QR logo:" -#: menu.sh:1042 menu.sh:1066 menu.sh:1078 menu.sh:1098 menu.sh:1121 -#: menu.sh:1145 menu.sh:1209 menu.sh:1216 menu.sh:1234 menu.sh:1247 -#: menu.sh:1250 menu.sh:1260 menu.sh:1261 menu.sh:1266 menu.sh:1270 -#: menu.sh:1281 menu.sh:1283 menu.sh:1300 menu.sh:1305 menu.sh:1313 -#: menu.sh:1319 menu.sh:1332 menu.sh:1335 menu.sh:1341 menu.sh:1344 -#: menu.sh:1359 menu.sh:1364 menu.sh:1368 menu.sh:1383 menu.sh:1388 -#: menu.sh:1395 menu.sh:1399 menu.sh:1402 menu.sh:1407 menu.sh:1417 -#: menu.sh:1422 menu.sh:1428 menu.sh:1432 menu.sh:1449 menu.sh:1452 -#: menu.sh:1458 menu.sh:1466 menu.sh:1474 menu.sh:1481 menu.sh:1483 +#: menu.sh:1062 menu.sh:1086 menu.sh:1098 menu.sh:1118 menu.sh:1141 +#: menu.sh:1165 menu.sh:1229 menu.sh:1236 menu.sh:1254 menu.sh:1267 +#: menu.sh:1270 menu.sh:1280 menu.sh:1281 menu.sh:1286 menu.sh:1290 +#: menu.sh:1301 menu.sh:1303 menu.sh:1320 menu.sh:1325 menu.sh:1333 +#: menu.sh:1339 menu.sh:1352 menu.sh:1355 menu.sh:1359 menu.sh:1362 +#: menu.sh:1377 menu.sh:1382 menu.sh:1386 menu.sh:1401 menu.sh:1406 +#: menu.sh:1413 menu.sh:1417 menu.sh:1420 menu.sh:1425 menu.sh:1435 +#: menu.sh:1440 menu.sh:1446 menu.sh:1450 menu.sh:1467 menu.sh:1470 +#: menu.sh:1476 menu.sh:1484 menu.sh:1498 menu.sh:1502 menu.sh:1512 +#: menu.sh:1517 menu.sh:1524 menu.sh:1526 msgid "Advanced" msgstr "高級" -#: menu.sh:1043 +#: menu.sh:1063 msgid "Advanced option" msgstr "高級設定" -#: menu.sh:1067 menu.sh:1079 menu.sh:1099 +#: menu.sh:1087 menu.sh:1099 menu.sh:1119 msgid "Choose a time(seconds)" msgstr "選擇一個時間(秒)" -#: menu.sh:1109 +#: menu.sh:1129 msgid "Temporary IP: (UI will not refresh)" msgstr "臨時 IP: (UI 不會重繪)" -#: menu.sh:1146 +#: menu.sh:1166 msgid "Setting IP ..." msgstr "設定 IP..." -#: menu.sh:1207 +#: menu.sh:1227 msgid "\\nTotal of ports: %s\\n" msgstr "\\n埠總數: %s\\n" -#: menu.sh:1208 +#: menu.sh:1228 msgid "" "\\nPorts with color \\Z1red\\Zn as DUMMY, color \\Z2\\Zbgreen\\Zn has drive " "connected." msgstr "\\n\\Z1红色\\Zn 為類比埠, \\Z2\\Zb绿色\\Zn 為已驅動的物理埠." -#: menu.sh:1215 +#: menu.sh:1235 msgid "pat: (editable)" msgstr "pat: (可編輯)" -#: menu.sh:1231 +#: menu.sh:1251 msgid "" "This feature will allow you to downgrade the installation by removing the " "VERSION file from the first partition of all disks.\\n" msgstr "此功能通過删除所有磁碟的第一個分區的 VERSION 檔案來允許你降級安裝.\\n" -#: menu.sh:1232 +#: menu.sh:1252 msgid "Therefore, please insert all disks before continuing.\\n" msgstr "囙此, 請插入所有磁碟後再進行操作.\\n" -#: menu.sh:1233 menu.sh:1267 +#: menu.sh:1253 menu.sh:1287 msgid "" "Warning:\\nThis operation is irreversible. Please backup important data. Do " "you want to continue?" msgstr "警告:\\n該操作不可逆, 請提前備份重要數據. 是否繼續?" -#: menu.sh:1248 +#: menu.sh:1268 msgid "Removing ..." msgstr "删除中..." -#: menu.sh:1249 +#: menu.sh:1269 msgid "Remove VERSION file for all disks completed." msgstr "已移除所有磁碟的 VERSION 檔案." -#: menu.sh:1271 +#: menu.sh:1291 msgid "" "Warning:\\nThe current hds is in raid, do you still want to format them?" msgstr "警告:\\n當前的硬碟處於 raid 中, 是否仍要格式化?" -#: menu.sh:1282 +#: menu.sh:1302 msgid "Formatting ..." msgstr "格式化中..." -#: menu.sh:1284 +#: menu.sh:1304 msgid "Formatting is complete." msgstr "格式化完成." -#: menu.sh:1301 +#: menu.sh:1321 msgid "The installed Syno system not found in the currently inserted disks!" msgstr "未在當前插入的硬碟中找到已安裝的 syno 系統!" -#: menu.sh:1306 +#: menu.sh:1326 msgid "Choose a user name" msgstr "選擇一個用戶" -#: menu.sh:1314 +#: menu.sh:1334 msgid "Type a new password for user '%s'" msgstr "輸入用戶 '%s' 的新密碼" -#: menu.sh:1320 +#: menu.sh:1340 msgid "Invalid password" msgstr "無效密碼" -#: menu.sh:1333 +#: menu.sh:1353 msgid "Resetting ..." msgstr "重置中 ..." -#: menu.sh:1336 +#: menu.sh:1356 msgid "Password reset completed." msgstr "重置密碼完成." -#: menu.sh:1342 menu.sh:1400 menu.sh:1453 +#: menu.sh:1360 menu.sh:1418 menu.sh:1471 msgid "" "Warning:\\nDo not terminate midway, otherwise it may cause damage to the RR. " "Do you want to continue?" msgstr "警告:\\n請不要中途停止, 否則將導致 RR 引導損毀, 是否繼續?" -#: menu.sh:1345 +#: menu.sh:1363 msgid "Saving ..." msgstr "保存中..." -#: menu.sh:1360 +#: menu.sh:1378 msgid "Save is complete." msgstr "保存完成." -#: menu.sh:1369 +#: menu.sh:1387 msgid "" "Currently, only dts format files are supported. Please prepare and click to " "confirm uploading.\\n(saved in /mnt/p3/users/)" @@ -820,355 +864,398 @@ msgstr "" "現時, 只支持 dts 格式的檔案, 請準備並點擊確認上傳.\\n(保存於 /mnt/p3/users/ " "中)" -#: menu.sh:1384 +#: menu.sh:1402 msgid "Not a valid dts file, please try again!" msgstr "dts 檔案無效, 請重試!" -#: menu.sh:1389 +#: menu.sh:1407 msgid "A valid dts file, Automatically import at compile time." msgstr "dts 檔案有效, 將在編譯時自動導入." -#: menu.sh:1403 +#: menu.sh:1421 msgid "Backuping..." msgstr "備份中..." -#: menu.sh:1408 +#: menu.sh:1426 msgid "" "Failed to generate backup. There may be insufficient memory. Please clear " "the cache and try again!" msgstr "生成備份失敗, 可能記憶體不足, 請清除緩存重試!" -#: menu.sh:1415 +#: menu.sh:1433 msgid "Click on the address above to download." msgstr "點擊上面的地址下載." -#: menu.sh:1416 +#: menu.sh:1434 msgid "" "Please confirm the completion of the download before closing this window." msgstr "請確認下載完成再關閉此視窗." -#: menu.sh:1423 +#: menu.sh:1441 msgid "backup is complete." msgstr "備份完成." -#: menu.sh:1433 +#: menu.sh:1451 msgid "" "Please upload the backup file.\\nCurrently, zip(github) and img.gz(backup) " "compressed file formats are supported." msgstr "請上傳備份的檔案\\n當前支持 zip(github) 和 img.gz(backup) 格式." -#: menu.sh:1450 +#: menu.sh:1468 msgid "Not a valid .zip/.img.gz file, please try again!" msgstr "不是有效的 .zip/.img.gz 檔案, 請重試!" -#: menu.sh:1459 +#: menu.sh:1477 msgid "Writing..." msgstr "寫入中..." -#: menu.sh:1467 +#: menu.sh:1485 msgid "Restore bootloader disk with success to %s!\\nReboot?" msgstr "成功恢復開機磁碟到 %s!\\n重啓?" -#: menu.sh:1475 +#: menu.sh:1499 +msgid "" +"Please via %s to download the logs,\\nAnd go to github to create an issue " +"and upload the logs." +msgstr "請透過 %s 下載日誌 logs,\\n並前往 github 建立問題並上傳日誌 logs." + +#: menu.sh:1503 +msgid "Please go to github to create an issue and upload the logs." +msgstr "請前往 github 建立問題並上傳日誌 logs." + +#: menu.sh:1507 +msgid "\\Z1No logs found!\\Zn\\n\\n" +msgstr "\\Z1日誌 logs 找不到!\\Zn\\n\\n" + +#: menu.sh:1508 +msgid "Please do as follows:\\n" +msgstr "請按如下操作:\\n" + +#: menu.sh:1509 +msgid " 1. Add dbgutils in addons and rebuild.\\n" +msgstr "1. 在外掛程式中加入 dbgutils 並重新編譯.\\n" + +#: menu.sh:1510 +msgid " 2. Wait 10 minutes after booting.\\n" +msgstr "2. 啟動後等待10分鐘.\\n" + +#: menu.sh:1511 +msgid " 3. Reboot into RR and go to this option.\\n" +msgstr "3. 重啟到 RR 並回到該選項.\\n" + +#: menu.sh:1518 msgid "" "This option only installs opkg package management, allowing you to install " "more tools for use and debugging. Do you want to continue?" msgstr "" "該選項僅安裝 opkg 包管理工具, 使你能够安裝更多的工具以供使用和調試, 是否繼續?" -#: menu.sh:1482 +#: menu.sh:1525 msgid "opkg installing ..." msgstr "opkg 安裝中 ..." -#: menu.sh:1484 +#: menu.sh:1527 msgid "" "opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." "bashrc'" msgstr "opkg 安裝完成. 請重新連結 SSH/web, 或者執行 'source ~/.bashrc'" -#: menu.sh:1499 menu.sh:1536 menu.sh:1543 +#: menu.sh:1542 menu.sh:1577 menu.sh:1584 msgid "Try recovery DSM" msgstr "嘗試恢復 DSM 系統" -#: menu.sh:1500 +#: menu.sh:1543 msgid "Trying to recovery a DSM installed system ..." msgstr "嘗試恢復已安裝的 DSM 系統中 ..." -#: menu.sh:1526 +#: menu.sh:1571 msgid "Found a installation:\\nModel: %s\\nProductversion: %s" msgstr "找到已安裝:\\n型號: %s\\n版本: %s" -#: menu.sh:1530 +#: menu.sh:1575 msgid "\\nSerial: %s" msgstr "\\nSN: %s" -#: menu.sh:1544 +#: menu.sh:1585 msgid "Unfortunately I couldn't mount the DSM partition!" msgstr "很遺憾, 我無法掛載 DSM 分區!" -#: menu.sh:1552 menu.sh:1558 menu.sh:1581 +#: menu.sh:1593 menu.sh:1599 menu.sh:1622 msgid "Edit with caution" msgstr "請謹慎編輯" -#: menu.sh:1592 +#: menu.sh:1633 msgid "Alert" msgstr "警告" -#: menu.sh:1593 +#: menu.sh:1634 msgid "Config changed, would you like to rebuild the loader?" msgstr "配寘已更改, 是否重新編譯引導?" -#: menu.sh:1595 menu.sh:2002 menu.sh:2035 -msgid "Main menu" -msgstr "主選單" - -#: menu.sh:1596 menu.sh:2036 -msgid "Making ..." -msgstr "編譯中 ..." - -#: menu.sh:1606 menu.sh:1992 +#: menu.sh:1646 menu.sh:2032 msgid "Choose a language" msgstr "選擇語言" -#: menu.sh:1620 +#: menu.sh:1660 msgid "Choose a layout" msgstr "選擇佈局" -#: menu.sh:1632 +#: menu.sh:1672 msgid "Choice a keymap" msgstr "選擇鍵盤" -#: menu.sh:1651 menu.sh:1706 menu.sh:1757 menu.sh:1829 menu.sh:1832 -#: menu.sh:1835 menu.sh:1838 menu.sh:1845 menu.sh:1852 menu.sh:1859 -#: menu.sh:1866 +#: menu.sh:1691 menu.sh:1746 menu.sh:1797 menu.sh:1869 menu.sh:1872 +#: menu.sh:1875 menu.sh:1878 menu.sh:1885 menu.sh:1892 menu.sh:1899 +#: menu.sh:1906 msgid "Update %s" msgstr "更新 %s" -#: menu.sh:1654 +#: menu.sh:1694 msgid "Checking last version ..." msgstr "檢測新版本中 ..." -#: menu.sh:1667 menu.sh:1670 +#: menu.sh:1707 menu.sh:1710 msgid "Error checking new version.\\nError: TAG is %s" msgstr "檢測新版本錯誤.\\nError: TAG is %s" -#: menu.sh:1677 +#: menu.sh:1717 msgid "No new version." msgstr "沒有新版本." -#: menu.sh:1681 +#: menu.sh:1721 msgid "No new version. Actual version is %s\\nForce update?" msgstr "沒有新版本. 實際版本為 %s\\n強制更新?" -#: menu.sh:1690 +#: menu.sh:1730 msgid "Downloading ..." msgstr "下載中 ..." -#: menu.sh:1694 menu.sh:1697 +#: menu.sh:1734 menu.sh:1737 msgid "Error downloading new version.\\nError: %d:%d" msgstr "下載新版本錯誤.\\nError: %d:%d" -#: menu.sh:1708 menu.sh:1759 +#: menu.sh:1748 menu.sh:1799 msgid "Extracting last version" msgstr "解壓新版本" -#: menu.sh:1712 +#: menu.sh:1752 msgid "Error extracting update file" msgstr "更新檔案解壓錯誤" -#: menu.sh:1719 +#: menu.sh:1759 msgid "Checksum do not match!" msgstr "Checksum 不匹配!" -#: menu.sh:1728 +#: menu.sh:1768 msgid "" "The current version does not support upgrading to the latest update.zip. " "Please remake the bootloader disk!" msgstr "當前版本不支持最新的 update.zip 陞級, 請重新製作引導盤!" -#: menu.sh:1733 +#: menu.sh:1773 msgid "Installing new files ..." msgstr "安裝更新中 ..." -#: menu.sh:1750 +#: menu.sh:1790 msgid "RR updated with success to %s!\\nReboot?" msgstr "RR 更新成功 %s!\\n重啓?" -#: menu.sh:1765 +#: menu.sh:1805 msgid "Installing new %s ..." msgstr "安裝新 %s 中 ..." -#: menu.sh:1794 menu.sh:1797 +#: menu.sh:1834 menu.sh:1837 msgid "%s updated with success!" msgstr "%s 更新成功!" -#: menu.sh:1811 +#: menu.sh:1851 msgid "Update all" msgstr "更新全部" -#: menu.sh:1812 +#: menu.sh:1852 msgid "Update RR" -msgstr "更新 RR " +msgstr "更新 RR" -#: menu.sh:1813 +#: menu.sh:1853 msgid "Update addons" msgstr "更新挿件" -#: menu.sh:1814 +#: menu.sh:1854 msgid "Update modules" msgstr "更新模塊" -#: menu.sh:1815 +#: menu.sh:1855 msgid "Update LKMs" msgstr "更新LKMs" -#: menu.sh:1817 +#: menu.sh:1857 msgid "Set proxy server" msgstr "設定代理" -#: menu.sh:1819 +#: menu.sh:1859 msgid "Local upload" msgstr "本地上傳" -#: menu.sh:1820 +#: menu.sh:1860 msgid "Pre Release:" msgstr "預發佈:" -#: menu.sh:1829 menu.sh:1852 +#: menu.sh:1869 menu.sh:1892 msgid "addons" msgstr "挿件" -#: menu.sh:1832 menu.sh:1859 +#: menu.sh:1872 menu.sh:1899 msgid "modules" msgstr "模塊" -#: menu.sh:1835 menu.sh:1866 +#: menu.sh:1875 menu.sh:1906 msgid "LKMs" msgstr "LKMs" -#: menu.sh:1838 menu.sh:1845 +#: menu.sh:1878 menu.sh:1885 msgid "RR" msgstr "RR" -#: menu.sh:1875 menu.sh:1886 menu.sh:1897 menu.sh:1907 menu.sh:1924 -#: menu.sh:1938 +#: menu.sh:1915 menu.sh:1926 menu.sh:1937 menu.sh:1947 menu.sh:1964 +#: menu.sh:1978 msgid "Update" msgstr "更新" -#: menu.sh:1876 +#: menu.sh:1916 msgid "Please enter a proxy server url" msgstr "請輸入代理伺服器 url" -#: menu.sh:1887 +#: menu.sh:1927 msgid "Invalid proxy server url, continue?" msgstr "無效的代理伺服器 url, 是否繼續?" -#: menu.sh:1902 +#: menu.sh:1942 msgid "" "Please keep the attachment name consistent with the attachment name on " "Github.\\n" msgstr "請保持附件名稱與 github 上附件名稱一致.\\n" -#: menu.sh:1903 +#: menu.sh:1943 msgid "Upload update.zip will update RR.\\n" msgstr "上傳 update.zip 将更新 RR.\\n" -#: menu.sh:1904 +#: menu.sh:1944 msgid "Upload addons.zip will update Addons.\\n" msgstr "上傳 addons.zip 将更新 挿件.\\n" -#: menu.sh:1905 +#: menu.sh:1945 msgid "Upload modules.zip will update Modules.\\n" msgstr "上傳 modules.zip 将更新 模塊.\\n" -#: menu.sh:1906 +#: menu.sh:1946 msgid "Upload rp-lkms.zip will update LKMs.\\n" msgstr "上傳 rp-lkms.zip 将更新 LKMs.\\n" -#: menu.sh:1955 +#: menu.sh:1995 msgid "This person is very lazy and hasn't written anything." msgstr "這個人很懶, 什麼也沒有寫." -#: menu.sh:1956 +#: menu.sh:1996 msgid "Edit" msgstr "編輯" -#: menu.sh:1973 +#: menu.sh:2013 msgid "Choose a model" msgstr "選擇型號" -#: menu.sh:1975 +#: menu.sh:2015 msgid "Choose a version" msgstr "選擇版本" -#: menu.sh:1977 +#: menu.sh:2017 msgid "Addons menu" msgstr "挿件" -#: menu.sh:1978 +#: menu.sh:2018 msgid "Modules menu" msgstr "模塊" -#: menu.sh:1979 +#: menu.sh:2019 msgid "Cmdline menu" msgstr "設定 Cmdline" -#: menu.sh:1980 +#: menu.sh:2020 msgid "Synoinfo menu" msgstr "設定 Synoinfo" -#: menu.sh:1983 +#: menu.sh:2023 msgid "Advanced menu" msgstr "高級設定" -#: menu.sh:1986 +#: menu.sh:2026 msgid "Build the loader" msgstr "編譯引導" -#: menu.sh:1990 +#: menu.sh:2030 msgid "Boot the loader" msgstr "啟動" -#: menu.sh:1993 +#: menu.sh:2033 msgid "Choose a keymap" msgstr "選擇鍵盤" -#: menu.sh:1995 +#: menu.sh:2035 msgid "Clean disk cache" msgstr "清除磁碟緩存" -#: menu.sh:1997 +#: menu.sh:2037 msgid "Update menu" msgstr "更新" -#: menu.sh:1998 +#: menu.sh:2038 msgid "Notepad" msgstr "備註" -#: menu.sh:2067 +#: menu.sh:2106 msgid "Choose a action" msgstr "選擇動作" -#: menu.sh:2068 +#: menu.sh:2107 msgid "Poweroff" msgstr "關機" -#: menu.sh:2069 +#: menu.sh:2108 msgid "Reboot" msgstr "重啓" -#: menu.sh:2070 +#: menu.sh:2109 msgid "Reboot to RR" msgstr "重啓到 RR" -#: menu.sh:2071 +#: menu.sh:2110 msgid "Back to shell" msgstr "退出到 shell" -#: menu.sh:2097 +#: menu.sh:2136 msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu" msgstr "執行 \\033[1;32mmenu.sh\\033[0m 重新進入設定選單" +#~ msgid "Show all available addons" +#~ msgstr "顯示所有可用挿件" + +#~ msgid "Show user added cmdline" +#~ msgstr "顯示用戶添加的 cmdline 參數" + +#~ msgid "Type a name of cmdline" +#~ msgstr "輸入參數的名稱" + +#~ msgid "Type a value of '%s' cmdline" +#~ msgstr "輸入 '%s' 參數的值" + +#~ msgid "Show synoinfo entries" +#~ msgstr "顯示 Synoinfo 參數" + +#~ msgid "Type a name of synoinfo entry" +#~ msgstr "輸入參數的名稱" + +#~ msgid "Type a value of '%s' synoinfo entry" +#~ msgstr "輸入 '%s' 參數的值”" + #~ msgid "" #~ "This version only support usb startup, Please select another version or " #~ "switch the startup mode." diff --git a/files/initrd/opt/rr/lang/zh_TW.po b/files/initrd/opt/rr/lang/zh_TW.po index 532bb000..962efcb0 100644 --- a/files/initrd/opt/rr/lang/zh_TW.po +++ b/files/initrd/opt/rr/lang/zh_TW.po @@ -7,21 +7,21 @@ msgid "" msgstr "" "Project-Id-Version: RR\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-29 20:43+0800\n" -"PO-Revision-Date: 2023-10-29 20:50+0800\n" +"POT-Creation-Date: 2023-10-31 17:00+0800\n" +"PO-Revision-Date: 2023-10-31 17:01+0800\n" "Last-Translator: March Fun \n" "Language-Team: Chinese (Taiwan) \n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4\n" +"X-Generator: Poedit 3.4.1\n" #: boot.sh:8 init.sh:9 menu.sh:9 msgid "Loader is not init!" msgstr "開機碟未初始化!" -#: boot.sh:10 init.sh:103 +#: boot.sh:10 init.sh:104 msgid "Loader is not configured!" msgstr "開機檔未設置!" @@ -33,120 +33,115 @@ msgstr "歡迎使用 %s" msgid "DSM zImage changed" msgstr "DSM zImage 已變更" -#: boot.sh:36 boot.sh:49 menu.sh:821 menu.sh:830 menu.sh:855 menu.sh:885 -#: menu.sh:897 menu.sh:921 menu.sh:929 menu.sh:961 menu.sh:978 menu.sh:985 -msgid "Error" -msgstr "錯誤" - -#: boot.sh:37 menu.sh:979 +#: boot.sh:36 menu.sh:993 msgid "" "zImage not patched,\\nPlease upgrade the bootloader version and try again." "\\nPatch error:\\n" msgstr "zImage 未修補,\\n請升級開機載入程式版本然後重試。\\n修補錯誤:\\n" -#: boot.sh:46 +#: boot.sh:45 msgid "DSM Ramdisk changed" msgstr "DSM Ramdisk 已變更" -#: boot.sh:50 menu.sh:986 +#: boot.sh:48 menu.sh:999 msgid "" "Ramdisk not patched,\\nPlease upgrade the bootloader version and try again." "\\nPatch error:\\n" msgstr "Ramdisk 未修補,\\n請升級開機載入程式版本然後重試。\\n修補錯誤:\\n" -#: boot.sh:69 +#: boot.sh:67 msgid "Model:" msgstr "型號: " -#: boot.sh:70 +#: boot.sh:68 msgid "Build:" msgstr "版本: " -#: boot.sh:71 +#: boot.sh:69 msgid "LKM: " msgstr "LKM: " -#: boot.sh:72 +#: boot.sh:70 msgid "DMI: " msgstr "DMI: " -#: boot.sh:73 +#: boot.sh:71 msgid "CPU: " msgstr "CPU: " -#: boot.sh:74 +#: boot.sh:72 msgid "MEM: " msgstr "MEM: " -#: boot.sh:77 +#: boot.sh:75 msgid "" "The current version of bootloader does not support booting %s-%s, please " "upgrade and rebuild." msgstr "目前版本的開機載入程式不支援啟動 %s-%s,請升級並重建。" -#: boot.sh:89 +#: boot.sh:87 msgid "" "Please insert at least one sata/scsi disk for system installation, except " "for the bootloader disk." msgstr "除了開機碟之外,請至少插入一個 sata/scsi 磁碟以進行系統安裝。" -#: boot.sh:152 +#: boot.sh:150 msgid "Cmdline:\\n" msgstr "Cmdline:\\n" -#: boot.sh:158 +#: boot.sh:156 msgid "Reboot to boot directly in DSM" msgstr "重新開機以直接啟動 DSM" -#: boot.sh:164 init.sh:116 +#: boot.sh:162 init.sh:117 msgid "Detected %s network cards." msgstr "檢測到 %s 個網路卡。" -#: boot.sh:165 init.sh:117 +#: boot.sh:163 init.sh:118 msgid "Checking Connect." msgstr "檢查連線。" -#: boot.sh:185 +#: boot.sh:183 msgid "Waiting IP.(For reference only)" msgstr "正在取得 IP (僅供參考)" -#: boot.sh:192 init.sh:142 +#: boot.sh:190 init.sh:143 msgid "DOWN" msgstr "關機" -#: boot.sh:196 init.sh:146 +#: boot.sh:194 init.sh:147 msgid "NOT CONNECTED" msgstr "未連線" -#: boot.sh:200 init.sh:150 +#: boot.sh:198 init.sh:151 msgid "TIMEOUT (Please check the IP on the router.)" msgstr "逾時 (請檢查路由器上的IP.)" -#: boot.sh:206 +#: boot.sh:204 msgid "Access \\033[1;34mhttp://%s:5000\\033[0m to connect the DSM via web." msgstr "在瀏覽器中瀏覽 \\033[1;34mhttp://%s:5000\\033[0m 連線 DSM。" -#: boot.sh:218 +#: boot.sh:216 msgid "%2ds (Changing access(ssh/web) status will interrupt boot)" msgstr "%2ds (變更存取 (ssh/web) 狀態將中斷開機)" -#: boot.sh:222 +#: boot.sh:220 msgid "access(ssh/web) status has changed and booting is interrupted." msgstr "存取 (ssh/web) 狀態已變更,開機已中斷。" -#: boot.sh:232 +#: boot.sh:230 msgid "Loading DSM kernel..." msgstr "載入 DSM 核心..." -#: boot.sh:245 +#: boot.sh:243 msgid "Warning, running kexec with --noefi param, strange things will happen!!" msgstr "警告,使用'--noefi'參數執行'kexec',可能有意外事情發生!" -#: boot.sh:250 +#: boot.sh:248 msgid "Booting..." msgstr "開機中..." -#: boot.sh:252 +#: boot.sh:250 msgid "" "[This interface will not be operational. Please wait a few minutes.\\nFind " "DSM via http://find.synology.com/ or Synology Assistant and connect.]" @@ -158,249 +153,250 @@ msgstr "" msgid "Network devices not found!" msgstr "未找到網路卡!" -#: init.sh:80 +#: init.sh:81 msgid "Loader disk neither USB or SATA/SCSI/NVME DoM" msgstr "開機碟僅支援 USB 或者 SATA/SCSI/NVME DoM" -#: init.sh:88 +#: init.sh:89 msgid "Loader disk:" msgstr "開機碟:" -#: init.sh:96 +#: init.sh:97 msgid "Loading keymap" msgstr "載入 keymap" -#: init.sh:106 +#: init.sh:107 msgid "User requested edit settings." msgstr "使用者要求編輯設定。" -#: init.sh:135 +#: init.sh:136 msgid "Waiting IP." msgstr "正在取得 IP。" -#: init.sh:156 +#: init.sh:157 msgid "" "Access \\033[1;34mhttp://%s:7681\\033[0m to configure the loader via web " "terminal." msgstr "" "在瀏覽器中瀏覽 \\033[1;34mhttp://%s:7681\\033[0m 進入 WEB 終端進行設置。" -#: init.sh:166 +#: init.sh:167 msgid "Call \\033[1;32mmenu.sh\\033[0m to configure loader" msgstr "執行 \\033[1;32mmenu.sh\\033[0m 進入設定選單" -#: init.sh:168 +#: init.sh:169 msgid "User config is on" msgstr "使用者設定已開啟" -#: init.sh:169 +#: init.sh:170 msgid "Default SSH Root password is" msgstr "預設 SSH 的 root 密碼為" -#: init.sh:183 +#: init.sh:184 msgid "" "You have less than 4GB of RAM, if errors occur in loader creation, please " "increase the amount of memory." msgstr "您的記憶體不足 4GB,如果在建立開機檔時出現錯誤,請增加記憶體。" -#: menu.sh:90 +#: menu.sh:92 msgid "Model" msgstr "型號" -#: menu.sh:91 +#: menu.sh:93 msgid "Reading models" msgstr "讀取型號" -#: menu.sh:101 +#: menu.sh:103 msgid "Compatibility judgment" msgstr "相容性判斷" -#: menu.sh:122 +#: menu.sh:124 msgid "Disable flags restriction" msgstr "停用標誌限制" -#: menu.sh:123 +#: menu.sh:125 msgid "Show all models" msgstr "顯示全部模組" -#: menu.sh:125 +#: menu.sh:127 msgid "Choose the model" msgstr "選擇型號" -#: menu.sh:213 +#: menu.sh:215 msgid "Choose a product version" msgstr "選擇產品版本" -#: menu.sh:223 menu.sh:229 menu.sh:240 menu.sh:266 menu.sh:286 +#: menu.sh:225 menu.sh:231 menu.sh:242 menu.sh:268 menu.sh:288 msgid "Product Version" msgstr "產品版本" -#: menu.sh:224 +#: menu.sh:226 msgid "" "The current version has been set to %s. Do you want to reset the version?" msgstr "當前版本已設定為 %s. 是否要重置版本?" -#: menu.sh:230 +#: menu.sh:232 msgid "" "This version does not support UEFI startup, Please select another version or " "switch the startup mode." msgstr "該版本不支援 UEFI 開機,請選擇其他版本或者切換開機模式。" -#: menu.sh:241 +#: menu.sh:243 msgid "Get pat data ..." msgstr "取得 pat 資料 ..." -#: menu.sh:260 +#: menu.sh:262 msgid "" "Failed to get pat data,\\nPlease manually fill in the URL and md5sum of the " "corresponding version of pat." msgstr "取得 pat 資料失敗,\\n請手動填寫相對版本 pat 的 URL 和 MD5。" -#: menu.sh:264 +#: menu.sh:266 msgid "Successfully to get pat data,\\nPlease confirm or modify as needed." msgstr "取得 pat 資料成功,\\n請確認或者依需要修改。" -#: menu.sh:267 +#: menu.sh:269 msgid "Retry" msgstr "重試" -#: menu.sh:287 +#: menu.sh:289 msgid "Reconfiguring Synoinfo, Addons and Modules" msgstr "重新設置 Syninfo、增益集和模組" -#: menu.sh:330 menu.sh:468 menu.sh:605 menu.sh:722 menu.sh:1824 +#: menu.sh:334 menu.sh:464 menu.sh:595 menu.sh:721 menu.sh:1864 msgid "Choose a option" msgstr "選擇選項" -#: menu.sh:331 +#: menu.sh:335 msgid "Add an addon" msgstr "加入增益集" -#: menu.sh:332 -msgid "Delete addon(s)" +#: menu.sh:336 +msgid "Delete addons" msgstr "删除增益集" -#: menu.sh:333 -msgid "Show user addons" -msgstr "顯示使用者增益集" +#: menu.sh:337 +msgid "Show all addons" +msgstr "顯示全部增益集" -#: menu.sh:334 -msgid "Show all available addons" -msgstr "顯示所有可用增益集" - -#: menu.sh:335 +#: menu.sh:338 msgid "Upload a external addon" msgstr "上傳外部增益集" -#: menu.sh:336 menu.sh:473 menu.sh:601 menu.sh:717 menu.sh:1040 menu.sh:1821 -#: menu.sh:1999 menu.sh:2072 +#: menu.sh:339 menu.sh:469 menu.sh:593 menu.sh:719 menu.sh:1060 menu.sh:1861 +#: menu.sh:2039 menu.sh:2111 msgid "Exit" msgstr "退出" -#: menu.sh:348 menu.sh:353 menu.sh:359 menu.sh:371 menu.sh:379 menu.sh:397 -#: menu.sh:411 menu.sh:416 menu.sh:420 menu.sh:434 menu.sh:438 menu.sh:446 -#: menu.sh:449 +#: menu.sh:351 menu.sh:356 menu.sh:362 menu.sh:374 menu.sh:382 menu.sh:406 +#: menu.sh:411 menu.sh:415 menu.sh:429 menu.sh:433 menu.sh:441 menu.sh:444 msgid "Addons" msgstr "增益集" -#: menu.sh:349 +#: menu.sh:352 msgid "No available addons to add" msgstr "沒有可用的增益集可加入" -#: menu.sh:354 +#: menu.sh:357 msgid "Select an addon" msgstr "選擇增益集" -#: menu.sh:360 +#: menu.sh:363 msgid "Type a optional params to addon" msgstr "輸入增益集的選用參數" -#: menu.sh:372 +#: menu.sh:375 msgid "No user addons to remove" msgstr "沒有要删除的使用者增益集" -#: menu.sh:380 +#: menu.sh:383 msgid "Select addon to remove" msgstr "選擇要删除的增益集" -#: menu.sh:417 menu.sh:1365 menu.sh:1396 menu.sh:1429 menu.sh:1898 +#: menu.sh:397 +msgid "" +"Name with color \"\\Z4blue\\Zn\" have been added, with color \"black\" are " +"not added.\\n\\n" +msgstr "名稱顏色為\"\\Z4藍色\\Zn\"的為已添加, 顏色為\"黑色\"的為未添加..\\n\\n" + +#: menu.sh:412 menu.sh:1383 menu.sh:1414 menu.sh:1447 menu.sh:1938 msgid "This feature is only available when accessed via web/ssh." msgstr "此功能僅在透過 web/ssh 存取時可用。" -#: menu.sh:421 +#: menu.sh:416 msgid "Please upload the *.addons file." msgstr "請上傳 *.addons 檔案。" -#: menu.sh:435 menu.sh:573 menu.sh:1925 menu.sh:1939 +#: menu.sh:430 menu.sh:569 menu.sh:1965 menu.sh:1979 msgid "Not a valid file, please try again!" msgstr "不是有效的檔案,請重試!" -#: menu.sh:439 +#: menu.sh:434 msgid "The addon already exists. Do you want to overwrite it?" msgstr "該增益集已存在,是否覆寫?" -#: menu.sh:447 +#: menu.sh:442 msgid "Addon '%s' added to loader, Please enable it in 'Add an addon' menu." msgstr "增益集 '%s' 已加入到開機中,請在「加入增益集」選單中開啟。" -#: menu.sh:450 +#: menu.sh:445 msgid "File format not recognized!" msgstr "檔案格式無法識別!" -#: menu.sh:469 +#: menu.sh:465 msgid "Show/Select modules" msgstr "顯示/選擇模組" -#: menu.sh:470 +#: menu.sh:466 msgid "Select loaded modules" msgstr "選擇已識別的模組" -#: menu.sh:471 +#: menu.sh:467 msgid "Upload a external module" msgstr "上傳一個外部模組" -#: menu.sh:472 +#: menu.sh:468 msgid "Priority use of official drivers:" msgstr "優先使用官方驅動程式:" -#: menu.sh:479 menu.sh:492 menu.sh:529 menu.sh:549 menu.sh:552 menu.sh:568 -#: menu.sh:572 +#: menu.sh:475 menu.sh:488 menu.sh:525 menu.sh:545 menu.sh:548 menu.sh:564 +#: menu.sh:568 msgid "Modules" msgstr "模組" -#: menu.sh:480 +#: menu.sh:476 msgid "Reading modules ..." msgstr "讀取模組中 ..." -#: menu.sh:493 +#: menu.sh:489 msgid "Select all" msgstr "全選" -#: menu.sh:494 +#: menu.sh:490 msgid "Deselect all" msgstr "全部不選" -#: menu.sh:495 +#: menu.sh:491 msgid "Select modules to include" msgstr "選擇要載入的增益集" -#: menu.sh:530 +#: menu.sh:526 msgid "Selecting loaded modules" msgstr "選擇已識別的模組" -#: menu.sh:544 +#: menu.sh:540 msgid "" "This function is experimental and dangerous. If you don't know much, please " "exit.\\n" msgstr "該功能是實驗性質且具有風險,如果你不瞭解,請退出。\\n" -#: menu.sh:545 +#: menu.sh:541 msgid "" "The imported .ko of this function will be implanted into the corresponding " "arch's modules package, which will affect all models of the arch.\\n" msgstr "該功能匯入 .ko 將植入相對架構的模組套件。這將影響該架構的所有型號。\\n" -#: menu.sh:546 +#: menu.sh:542 msgid "" "This program will not determine the availability of imported modules or even " "make type judgments, as please double check if it is correct.\\n" @@ -408,7 +404,7 @@ msgstr "" "該程式不會判斷匯入的驅動模組的可用性,甚至不會做類型判斷,因此請再三確認是否" "正確。\\n" -#: menu.sh:547 +#: menu.sh:543 msgid "" "If you want to remove it, please go to the \"Update Menu\" -> \"Update " "modules\" to forcibly update the modules. All imports will be reset.\\n" @@ -416,402 +412,450 @@ msgstr "" "如果您想删除它,請前往「更新 -> 更新模組」強制更新模組。所有匯入都將被重" "設。\\n" -#: menu.sh:548 +#: menu.sh:544 msgid "Do you want to continue?" msgstr "是否繼續?" -#: menu.sh:553 +#: menu.sh:549 msgid "Please upload the *.ko file." msgstr "請上傳 *.ko 檔案。" -#: menu.sh:569 +#: menu.sh:565 msgid "Module '%s' added to %s-%s" msgstr "模組 '%s' 已加入到 %s-%s" -#: menu.sh:594 -msgid "Add/edit a cmdline item" +#: menu.sh:587 +msgid "Add/Edit a cmdline item" msgstr "加入/編輯 cmdline 參數" -#: menu.sh:595 -msgid "Delete cmdline item(s)" -msgstr "删除 cmdline 參數" +#: menu.sh:588 +msgid "Show/Delete cmdline items" +msgstr "顯示/删除 cmdline 參數" -#: menu.sh:597 +#: menu.sh:590 msgid "Define SN/MAC" msgstr "自訂 SN/MAC" -#: menu.sh:599 -msgid "Show user added cmdline" -msgstr "顯示使用者加入的 cmdline 參數" - -#: menu.sh:600 +#: menu.sh:592 msgid "Show model inherent cmdline" msgstr "顯示型號預設的 cmdline 參數" -#: menu.sh:610 menu.sh:616 menu.sh:626 menu.sh:634 menu.sh:650 menu.sh:660 -#: menu.sh:689 menu.sh:697 +#: menu.sh:601 +msgid "Commonly used cmdlines:\\n" +msgstr "常用 cmdlines:\\n" + +#: menu.sh:602 +msgid "" +" * \\Z4disable_mtrr_trim=\\Zn\\n disables kernel trim any uncacheable " +"memory out.\\n" +msgstr " * \\Z4disable_mtrr_trim=\\Zn\\n 禁用內核修剪任何不可緩存的內存.\\n" + +#: menu.sh:603 +msgid "" +" * \\Z4\"intel_idle.max_cstate\"=1\\Zn\\n Set the maximum C-state depth " +"allowed by the intel_idle driver.\\n" +msgstr "" +" * \\Z4\"intel_idle.max_cstate\"=1\\Zn\\n 設定 intel_idle 驅動程式允許使用" +"的最大 C-state 深度.\\n" + +#: menu.sh:604 +msgid " * \\Z4SataPortMap=??\\Zn\\n Sata Port Map.\\n" +msgstr " * \\Z4SataPortMap=??\\Zn\\n Sata Port Map.\\n" + +#: menu.sh:605 +msgid "" +" * \\Z4DiskIdxMap=??\\Zn\\n Disk Index Map, Modify disk name sequence.\\n" +msgstr " * \\Z4DiskIdxMap=??\\Zn\\n Disk Index Map, 修改磁碟名稱順序.\\n" + +#: menu.sh:606 menu.sh:732 +msgid "\\nEnter the parameter name and value you need to add.\\n" +msgstr "\\n輸入需要新增的參數名稱和值.\\n" + +#: menu.sh:609 menu.sh:618 menu.sh:642 menu.sh:650 menu.sh:666 menu.sh:676 +#: menu.sh:705 menu.sh:735 menu.sh:744 msgid "Cmdline" msgstr "Cmdline" -#: menu.sh:611 -msgid "Type a name of cmdline" -msgstr "輸入參數的名稱" +#: menu.sh:619 menu.sh:745 +msgid "Invalid parameter name, retry?" +msgstr "無效的數名稱, 重試?" -#: menu.sh:617 -msgid "Type a value of '%s' cmdline" -msgstr "輸入 '%s' 參數的值" - -#: menu.sh:627 +#: menu.sh:643 msgid "No user cmdline to remove" msgstr "沒有使用者 cmdline 被删除" -#: menu.sh:635 +#: menu.sh:651 msgid "Select cmdline to remove" msgstr "選擇要删除的參數" -#: menu.sh:646 +#: menu.sh:662 msgid "Note: (MAC will not be set to NIC)" msgstr "注意: (MAC 不會設定到 NIC)" -#: menu.sh:651 +#: menu.sh:667 msgid "Random" msgstr "隨機" -#: menu.sh:661 +#: menu.sh:677 msgid "Invalid SN/MAC, retry?" msgstr "無效的 SN/MAC, 重試?" -#: menu.sh:714 +#: menu.sh:717 msgid "Add/edit a synoinfo item" msgstr "加入/編輯 Synoinfo 參數" -#: menu.sh:715 -msgid "Delete synoinfo item(s)" -msgstr "删除 Synoinfo 參數" +#: menu.sh:718 +msgid "Show/Delete synoinfo items" +msgstr "顯示/删除 Synoinfo 參數" -#: menu.sh:716 -msgid "Show synoinfo entries" -msgstr "顯示 Synoinfo 參數" +#: menu.sh:727 +msgid "Commonly used synoinfo:\\n" +msgstr "常用 synoinfo:\\n" -#: menu.sh:727 menu.sh:733 menu.sh:744 menu.sh:752 menu.sh:769 +#: menu.sh:728 +msgid " * \\Z4maxdisks=??\\Zn\\n Maximum number of disks supported.\\n" +msgstr " * \\Z4maxdisks=??\\Zn\\n 最大硬碟數.\\n" + +#: menu.sh:729 +msgid " * \\Z4internalportcfg=0x????\\Zn\\n Internal(sata) disks mask.\\n" +msgstr " * \\Z4internalportcfg=0x????\\Zn\\n Internal(sata) 磁碟遮罩.\\n" + +#: menu.sh:730 +msgid " * \\Z4esataportcfg=0x????\\Zn\\n Esata disks mask.\\n" +msgstr " * \\Z4esataportcfg=0x????\\Zn\\n Esata 磁碟遮罩.\\n" + +#: menu.sh:731 +msgid " * \\Z4usbportcfg=0x????\\Zn\\n USB disks mask.\\n" +msgstr " * \\Z4usbportcfg=0x????\\Zn\\n USB 磁碟遮罩.\\n" + +#: menu.sh:769 menu.sh:777 msgid "Synoinfo" msgstr "Synoinfo" -#: menu.sh:728 -msgid "Type a name of synoinfo entry" -msgstr "輸入參數的名稱" - -#: menu.sh:734 -msgid "Type a value of '%s' synoinfo entry" -msgstr "輸入 '%s' 參數的值”" - -#: menu.sh:745 +#: menu.sh:770 msgid "No synoinfo entries to remove" msgstr "沒有 Synoinfo 參數被删除" -#: menu.sh:753 +#: menu.sh:778 msgid "Select synoinfo entry to remove" msgstr "選擇要删除的參數" -#: menu.sh:793 +#: menu.sh:811 msgid "%s cached." msgstr "%s 已快取。" -#: menu.sh:797 +#: menu.sh:815 msgid "Cleaning cache ..." msgstr "清除快取 ..." -#: menu.sh:805 +#: menu.sh:823 msgid "" "Based on the current network situation, switch to %s mirror to downloading." msgstr "根據目前的網路狀況,已切換到 %s 鏡像伺服器進行下載。" -#: menu.sh:809 +#: menu.sh:827 msgid "Downloading %s ..." msgstr "下載 %s 中 ..." -#: menu.sh:820 menu.sh:884 +#: menu.sh:838 menu.sh:899 msgid "Check internet or cache disk space.\\nError: %d:%d" msgstr "請檢查網際網路或快取磁碟空間。\\n錯誤: %d:%d" -#: menu.sh:827 +#: menu.sh:844 msgid "Checking hash of %s: " msgstr "檢查 %s 的雜湊值: " -#: menu.sh:831 +#: menu.sh:847 msgid "" "md5 hash of pat not match, Please reget pat data from the version menu and " "try again!" msgstr "pat 的 md5 雜湊值不相符,請自版本功能表中重新取得 pat 資料並再試一次!" -#: menu.sh:834 menu.sh:938 menu.sh:948 +#: menu.sh:850 menu.sh:950 menu.sh:960 msgid "OK" msgstr "OK" -#: menu.sh:838 +#: menu.sh:854 msgid "Disassembling %s: " msgstr "解壓縮 %s: " -#: menu.sh:843 +#: menu.sh:859 msgid "Uncompressed tar" msgstr "未壓縮 tar" -#: menu.sh:847 +#: menu.sh:863 msgid "Compressed tar" msgstr "已壓縮 tar" -#: menu.sh:851 +#: menu.sh:867 msgid "Encrypted" msgstr "已加密" -#: menu.sh:856 +#: menu.sh:871 msgid "" "Could not determine if pat file is encrypted or not, maybe corrupted, try " "again!" msgstr "無法確定 pat 檔案是否加密,可能已損壞,請重試!" -#: menu.sh:866 +#: menu.sh:881 msgid "Extractor cached." msgstr "已存在解密程式。" -#: menu.sh:873 +#: menu.sh:888 msgid "Downloading old pat to extract synology .pat extractor..." msgstr "下載舊 pat,選取 .pat 解密程式中..." -#: menu.sh:915 menu.sh:918 +#: menu.sh:928 menu.sh:931 msgid "Extracting..." msgstr "解壓中..." -#: menu.sh:930 +#: menu.sh:942 msgid "pat Invalid, try again!" msgstr "無效的 pat, 請重試!" -#: menu.sh:933 +#: menu.sh:945 msgid "Setting hash: " msgstr "設定雜湊值: " -#: menu.sh:940 +#: menu.sh:952 msgid "Copying files: " msgstr "複製檔案: " -#: menu.sh:962 +#: menu.sh:977 msgid "Addon %s not found!" msgstr "增益集 %s 未找到!" -#: menu.sh:993 menu.sh:2051 +#: menu.sh:1006 menu.sh:2090 msgid "Cleaning ..." msgstr "清除中 ..." -#: menu.sh:995 +#: menu.sh:1008 msgid "Ready!" msgstr "已就绪!" -#: menu.sh:1007 +#: menu.sh:1012 menu.sh:2042 +msgid "Main menu" +msgstr "主功能表" + +#: menu.sh:1013 +msgid "Making ..." +msgstr "編譯中 ..." + +#: menu.sh:1014 +msgid "Error" +msgstr "錯誤" + +#: menu.sh:1026 msgid "Switch LKM version:" msgstr "切換 LKM 版本:" -#: menu.sh:1008 +#: menu.sh:1027 msgid "HDD sort:" -msgstr "HDD 排序: " +msgstr "HDD 排序:" -#: menu.sh:1011 +#: menu.sh:1030 msgid "Switch direct boot:" msgstr "切換直接開機:" -#: menu.sh:1013 +#: menu.sh:1032 msgid "Timeout of get ip in boot:" msgstr "開機時取得 IP 的逾時時間:" -#: menu.sh:1014 +#: menu.sh:1033 msgid "Timeout of boot wait:" msgstr "開機逾時時間:" -#: menu.sh:1015 +#: menu.sh:1034 msgid "kernel switching method:" msgstr "核心切換方式:" -#: menu.sh:1017 +#: menu.sh:1036 msgid "Reboot on kernel panic:" msgstr "核心崩潰時重新啟動:" -#: menu.sh:1019 +#: menu.sh:1038 msgid "Set static IP" msgstr "設定靜態 IP" -#: menu.sh:1020 +#: menu.sh:1039 msgid "Edit user config file manually" msgstr "手動編輯使用者設定檔" -#: menu.sh:1021 +#: menu.sh:1040 msgid "Edit grub.cfg file manually" msgstr "手動編輯 grub.cfg" -#: menu.sh:1022 +#: menu.sh:1041 msgid "Try to recovery a DSM installed system" msgstr "嘗試回復已安裝 DSM 的系統" -#: menu.sh:1023 +#: menu.sh:1042 msgid "Show SATA(s) # ports and drives" msgstr "顯示 SATA # 埠和磁碟機" -#: menu.sh:1025 +#: menu.sh:1044 msgid "show/modify the current pat data" msgstr "顯示/修改目前 pat 資料" -#: menu.sh:1027 +#: menu.sh:1046 msgid "Allow downgrade installation" msgstr "允許降級安裝" -#: menu.sh:1028 +#: menu.sh:1047 msgid "Format disk(s) # Without loader disk" msgstr "格式化磁碟(s) # 不含開機碟" -#: menu.sh:1029 +#: menu.sh:1048 msgid "Reset DSM system password" msgstr "重設 DSM 系統密碼" -#: menu.sh:1030 +#: menu.sh:1049 msgid "Save modifications of '/opt/rr'" msgstr "儲存「/opt/rr」的修改" -#: menu.sh:1032 +#: menu.sh:1051 msgid "Custom dts file # Need rebuild" msgstr "自訂 dts 檔案 # 需要重新編譯" -#: menu.sh:1035 +#: menu.sh:1054 msgid "Backup bootloader disk # test" msgstr "備份開機碟 # 測試" -#: menu.sh:1036 +#: menu.sh:1055 msgid "Restore bootloader disk # test" msgstr "回復開機碟 # 測試" -#: menu.sh:1038 +#: menu.sh:1057 +msgid "Report bugs to the author" +msgstr "向作者报告错误" + +#: menu.sh:1058 msgid "Install development tools" msgstr "安裝開發者工具" -#: menu.sh:1039 +#: menu.sh:1059 msgid "Show QR logo:" msgstr "顯示 QR 商標:" -#: menu.sh:1042 menu.sh:1066 menu.sh:1078 menu.sh:1098 menu.sh:1121 -#: menu.sh:1145 menu.sh:1209 menu.sh:1216 menu.sh:1234 menu.sh:1247 -#: menu.sh:1250 menu.sh:1260 menu.sh:1261 menu.sh:1266 menu.sh:1270 -#: menu.sh:1281 menu.sh:1283 menu.sh:1300 menu.sh:1305 menu.sh:1313 -#: menu.sh:1319 menu.sh:1332 menu.sh:1335 menu.sh:1341 menu.sh:1344 -#: menu.sh:1359 menu.sh:1364 menu.sh:1368 menu.sh:1383 menu.sh:1388 -#: menu.sh:1395 menu.sh:1399 menu.sh:1402 menu.sh:1407 menu.sh:1417 -#: menu.sh:1422 menu.sh:1428 menu.sh:1432 menu.sh:1449 menu.sh:1452 -#: menu.sh:1458 menu.sh:1466 menu.sh:1474 menu.sh:1481 menu.sh:1483 +#: menu.sh:1062 menu.sh:1086 menu.sh:1098 menu.sh:1118 menu.sh:1141 +#: menu.sh:1165 menu.sh:1229 menu.sh:1236 menu.sh:1254 menu.sh:1267 +#: menu.sh:1270 menu.sh:1280 menu.sh:1281 menu.sh:1286 menu.sh:1290 +#: menu.sh:1301 menu.sh:1303 menu.sh:1320 menu.sh:1325 menu.sh:1333 +#: menu.sh:1339 menu.sh:1352 menu.sh:1355 menu.sh:1359 menu.sh:1362 +#: menu.sh:1377 menu.sh:1382 menu.sh:1386 menu.sh:1401 menu.sh:1406 +#: menu.sh:1413 menu.sh:1417 menu.sh:1420 menu.sh:1425 menu.sh:1435 +#: menu.sh:1440 menu.sh:1446 menu.sh:1450 menu.sh:1467 menu.sh:1470 +#: menu.sh:1476 menu.sh:1484 menu.sh:1498 menu.sh:1502 menu.sh:1512 +#: menu.sh:1517 menu.sh:1524 menu.sh:1526 msgid "Advanced" msgstr "進階" -#: menu.sh:1043 +#: menu.sh:1063 msgid "Advanced option" msgstr "進階選項" -#: menu.sh:1067 menu.sh:1079 menu.sh:1099 +#: menu.sh:1087 menu.sh:1099 menu.sh:1119 msgid "Choose a time(seconds)" msgstr "選擇一個時間(秒)" -#: menu.sh:1109 +#: menu.sh:1129 msgid "Temporary IP: (UI will not refresh)" msgstr "臨時 IP: (UI 不會重繪)" -#: menu.sh:1146 +#: menu.sh:1166 msgid "Setting IP ..." msgstr "設定 IP..." -#: menu.sh:1207 +#: menu.sh:1227 msgid "\\nTotal of ports: %s\\n" msgstr "\\n埠總數: %s\\n" -#: menu.sh:1208 +#: menu.sh:1228 msgid "" "\\nPorts with color \\Z1red\\Zn as DUMMY, color \\Z2\\Zbgreen\\Zn has drive " "connected." msgstr "\\n\\Z1紅色\\Zn 為類比埠,\\Z2\\Zb綠色\\Zn 為已驅動的物理埠。" -#: menu.sh:1215 +#: menu.sh:1235 msgid "pat: (editable)" msgstr "pat: (可編輯)" -#: menu.sh:1231 +#: menu.sh:1251 msgid "" "This feature will allow you to downgrade the installation by removing the " "VERSION file from the first partition of all disks.\\n" msgstr "此功能透過删除所有磁碟第一個分區的 VERSION 檔案以允許你降級安裝。\\n" -#: menu.sh:1232 +#: menu.sh:1252 msgid "Therefore, please insert all disks before continuing.\\n" msgstr "因此,請插入所有磁碟後再進行操作。\\n" -#: menu.sh:1233 menu.sh:1267 +#: menu.sh:1253 menu.sh:1287 msgid "" "Warning:\\nThis operation is irreversible. Please backup important data. Do " "you want to continue?" msgstr "警告:\\n該作業不可逆,請提前備份重要資料。是否繼續?" -#: menu.sh:1248 +#: menu.sh:1268 msgid "Removing ..." msgstr "移除中..." -#: menu.sh:1249 +#: menu.sh:1269 msgid "Remove VERSION file for all disks completed." msgstr "已移除所有磁碟的 VERSION 檔案。" -#: menu.sh:1271 +#: menu.sh:1291 msgid "" "Warning:\\nThe current hds is in raid, do you still want to format them?" msgstr "警告:\\n目前的硬碟使用 raid 中,是否仍要格式化?" -#: menu.sh:1282 +#: menu.sh:1302 msgid "Formatting ..." msgstr "格式化中..." -#: menu.sh:1284 +#: menu.sh:1304 msgid "Formatting is complete." msgstr "格式化完成。" -#: menu.sh:1301 +#: menu.sh:1321 msgid "The installed Syno system not found in the currently inserted disks!" msgstr "未在目前插入的硬碟中找到已安裝的 syno 系統!" -#: menu.sh:1306 +#: menu.sh:1326 msgid "Choose a user name" msgstr "選擇使用者" -#: menu.sh:1314 +#: menu.sh:1334 msgid "Type a new password for user '%s'" msgstr "輸入使用者 '%s' 的新密碼" -#: menu.sh:1320 +#: menu.sh:1340 msgid "Invalid password" msgstr "無效的密碼" -#: menu.sh:1333 +#: menu.sh:1353 msgid "Resetting ..." msgstr "重設中 ..." -#: menu.sh:1336 +#: menu.sh:1356 msgid "Password reset completed." msgstr "重設密碼完成。" -#: menu.sh:1342 menu.sh:1400 menu.sh:1453 +#: menu.sh:1360 menu.sh:1418 menu.sh:1471 msgid "" "Warning:\\nDo not terminate midway, otherwise it may cause damage to the RR. " "Do you want to continue?" msgstr "警告:\\n請不要中途停止,否則將導致 RR 開機損毀,是否繼續?" -#: menu.sh:1345 +#: menu.sh:1363 msgid "Saving ..." msgstr "儲存中..." -#: menu.sh:1360 +#: menu.sh:1378 msgid "Save is complete." msgstr "儲存完成。" -#: menu.sh:1369 +#: menu.sh:1387 msgid "" "Currently, only dts format files are supported. Please prepare and click to " "confirm uploading.\\n(saved in /mnt/p3/users/)" @@ -819,56 +863,86 @@ msgstr "" "目前只支援 dts 格式的檔案,請準備並點選確認上傳。\\n(儲存於 /mnt/p3/users/ " "中)" -#: menu.sh:1384 +#: menu.sh:1402 msgid "Not a valid dts file, please try again!" msgstr "dts 檔案無效,請重試!" -#: menu.sh:1389 +#: menu.sh:1407 msgid "A valid dts file, Automatically import at compile time." msgstr "dts 檔案有效,將在編譯時自動匯入。" -#: menu.sh:1403 +#: menu.sh:1421 msgid "Backuping..." msgstr "備份中..." -#: menu.sh:1408 +#: menu.sh:1426 msgid "" "Failed to generate backup. There may be insufficient memory. Please clear " "the cache and try again!" msgstr "產生備份失敗,可能記憶體不足,請清除快取後重試!" -#: menu.sh:1415 +#: menu.sh:1433 msgid "Click on the address above to download." msgstr "點選上面的位址下載。" -#: menu.sh:1416 +#: menu.sh:1434 msgid "" "Please confirm the completion of the download before closing this window." msgstr "請確認下載完成再關閉此視窗。" -#: menu.sh:1423 +#: menu.sh:1441 msgid "backup is complete." msgstr "備份完成。" -#: menu.sh:1433 +#: menu.sh:1451 msgid "" "Please upload the backup file.\\nCurrently, zip(github) and img.gz(backup) " "compressed file formats are supported." msgstr "請上傳備份的檔案\\n目前支援 zip(github) 和 img.gz(backup) 格式。" -#: menu.sh:1450 +#: menu.sh:1468 msgid "Not a valid .zip/.img.gz file, please try again!" msgstr "不是有效的.zip/.img.gz 檔案,請重試!" -#: menu.sh:1459 +#: menu.sh:1477 msgid "Writing..." msgstr "寫入中..." -#: menu.sh:1467 +#: menu.sh:1485 msgid "Restore bootloader disk with success to %s!\\nReboot?" msgstr "成功回復開機碟到 %s!\\n重新開機?" -#: menu.sh:1475 +#: menu.sh:1499 +msgid "" +"Please via %s to download the logs,\\nAnd go to github to create an issue " +"and upload the logs." +msgstr "請透過 %s 下載日誌 logs,\\n並前往 github 建立問題並上傳日誌 logs." + +#: menu.sh:1503 +msgid "Please go to github to create an issue and upload the logs." +msgstr "請前往 github 建立問題並上傳日誌 logs." + +#: menu.sh:1507 +msgid "\\Z1No logs found!\\Zn\\n\\n" +msgstr "\\Z1日誌 logs 找不到!\\Zn\\n\\n" + +#: menu.sh:1508 +msgid "Please do as follows:\\n" +msgstr "請按如下操作:\\n" + +#: menu.sh:1509 +msgid " 1. Add dbgutils in addons and rebuild.\\n" +msgstr "1. 在外掛程式中加入 dbgutils 並重新編譯.\\n" + +#: menu.sh:1510 +msgid " 2. Wait 10 minutes after booting.\\n" +msgstr "2. 啟動後等待10分鐘.\\n" + +#: menu.sh:1511 +msgid " 3. Reboot into RR and go to this option.\\n" +msgstr "3. 重啟到 RR 並回到該選項.\\n" + +#: menu.sh:1518 msgid "" "This option only installs opkg package management, allowing you to install " "more tools for use and debugging. Do you want to continue?" @@ -876,299 +950,312 @@ msgstr "" "該選項僅安裝 opkg 套件管理工具,讓你能够安裝更多的工具以供使用和除錯,是否繼" "續?" -#: menu.sh:1482 +#: menu.sh:1525 msgid "opkg installing ..." msgstr "opkg 安裝中 ..." -#: menu.sh:1484 +#: menu.sh:1527 msgid "" "opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." "bashrc'" msgstr "opkg 安裝完成。請重新連線 SSH/web,或者執行「source ~/.bashrc」" -#: menu.sh:1499 menu.sh:1536 menu.sh:1543 +#: menu.sh:1542 menu.sh:1577 menu.sh:1584 msgid "Try recovery DSM" msgstr "嘗試回復 DSM 系統" -#: menu.sh:1500 +#: menu.sh:1543 msgid "Trying to recovery a DSM installed system ..." msgstr "嘗試回復已安裝的 DSM 系統中 ..." -#: menu.sh:1526 +#: menu.sh:1571 msgid "Found a installation:\\nModel: %s\\nProductversion: %s" msgstr "找到已安裝:\\n型號: %s\\n版本: %s" -#: menu.sh:1530 +#: menu.sh:1575 msgid "\\nSerial: %s" msgstr "\\nSN: %s" -#: menu.sh:1544 +#: menu.sh:1585 msgid "Unfortunately I couldn't mount the DSM partition!" msgstr "很遺憾,無法掛載 DSM 分割區!" -#: menu.sh:1552 menu.sh:1558 menu.sh:1581 +#: menu.sh:1593 menu.sh:1599 menu.sh:1622 msgid "Edit with caution" msgstr "請謹慎編輯" -#: menu.sh:1592 +#: menu.sh:1633 msgid "Alert" msgstr "警告" -#: menu.sh:1593 +#: menu.sh:1634 msgid "Config changed, would you like to rebuild the loader?" msgstr "設置已變更,是否重新編譯開機檔?" -#: menu.sh:1595 menu.sh:2002 menu.sh:2035 -msgid "Main menu" -msgstr "主功能表" - -#: menu.sh:1596 menu.sh:2036 -msgid "Making ..." -msgstr "編譯中 ..." - -#: menu.sh:1606 menu.sh:1992 +#: menu.sh:1646 menu.sh:2032 msgid "Choose a language" msgstr "選擇語言" -#: menu.sh:1620 +#: menu.sh:1660 msgid "Choose a layout" msgstr "選擇佈局" -#: menu.sh:1632 +#: menu.sh:1672 msgid "Choice a keymap" msgstr "選擇鍵盤" -#: menu.sh:1651 menu.sh:1706 menu.sh:1757 menu.sh:1829 menu.sh:1832 -#: menu.sh:1835 menu.sh:1838 menu.sh:1845 menu.sh:1852 menu.sh:1859 -#: menu.sh:1866 +#: menu.sh:1691 menu.sh:1746 menu.sh:1797 menu.sh:1869 menu.sh:1872 +#: menu.sh:1875 menu.sh:1878 menu.sh:1885 menu.sh:1892 menu.sh:1899 +#: menu.sh:1906 msgid "Update %s" msgstr "更新 %s" -#: menu.sh:1654 +#: menu.sh:1694 msgid "Checking last version ..." msgstr "檢測新版本中 ..." -#: menu.sh:1667 menu.sh:1670 +#: menu.sh:1707 menu.sh:1710 msgid "Error checking new version.\\nError: TAG is %s" msgstr "檢測新版本錯誤.\\nError: TAG is %s" -#: menu.sh:1677 +#: menu.sh:1717 msgid "No new version." msgstr "沒有新版本。" -#: menu.sh:1681 +#: menu.sh:1721 msgid "No new version. Actual version is %s\\nForce update?" msgstr "沒有新版本。實際版本為 %s\\n強制更新?" -#: menu.sh:1690 +#: menu.sh:1730 msgid "Downloading ..." msgstr "下載中 ..." -#: menu.sh:1694 menu.sh:1697 +#: menu.sh:1734 menu.sh:1737 msgid "Error downloading new version.\\nError: %d:%d" msgstr "下載新版本錯誤.\\nError: %d:%d" -#: menu.sh:1708 menu.sh:1759 +#: menu.sh:1748 menu.sh:1799 msgid "Extracting last version" msgstr "解壓新版本" -#: menu.sh:1712 +#: menu.sh:1752 msgid "Error extracting update file" msgstr "更新檔案解壓錯誤" -#: menu.sh:1719 +#: menu.sh:1759 msgid "Checksum do not match!" msgstr "總和檢查碼不相符!" -#: menu.sh:1728 +#: menu.sh:1768 msgid "" "The current version does not support upgrading to the latest update.zip. " "Please remake the bootloader disk!" msgstr "目前版本不支援升級到最新的 update.zip,請重新製作開機碟!" -#: menu.sh:1733 +#: menu.sh:1773 msgid "Installing new files ..." msgstr "安裝更新中 ..." -#: menu.sh:1750 +#: menu.sh:1790 msgid "RR updated with success to %s!\\nReboot?" msgstr "RR 更新成功 %s!\\n重新開機?" -#: menu.sh:1765 +#: menu.sh:1805 msgid "Installing new %s ..." msgstr "安裝新 %s 中 ..." -#: menu.sh:1794 menu.sh:1797 +#: menu.sh:1834 menu.sh:1837 msgid "%s updated with success!" msgstr "%s 更新成功!" -#: menu.sh:1811 +#: menu.sh:1851 msgid "Update all" msgstr "更新全部" -#: menu.sh:1812 +#: menu.sh:1852 msgid "Update RR" -msgstr "更新 RR " +msgstr "更新 RR" -#: menu.sh:1813 +#: menu.sh:1853 msgid "Update addons" msgstr "更新增益集" -#: menu.sh:1814 +#: menu.sh:1854 msgid "Update modules" msgstr "更新模組" -#: menu.sh:1815 +#: menu.sh:1855 msgid "Update LKMs" msgstr "更新 LKM" -#: menu.sh:1817 +#: menu.sh:1857 msgid "Set proxy server" msgstr "設定代理" -#: menu.sh:1819 +#: menu.sh:1859 msgid "Local upload" msgstr "本地上傳" -#: menu.sh:1820 +#: menu.sh:1860 msgid "Pre Release:" msgstr "預發佈:" -#: menu.sh:1829 menu.sh:1852 +#: menu.sh:1869 menu.sh:1892 msgid "addons" msgstr "增益集" -#: menu.sh:1832 menu.sh:1859 +#: menu.sh:1872 menu.sh:1899 msgid "modules" msgstr "模組" -#: menu.sh:1835 menu.sh:1866 +#: menu.sh:1875 menu.sh:1906 msgid "LKMs" msgstr "LKMs" -#: menu.sh:1838 menu.sh:1845 +#: menu.sh:1878 menu.sh:1885 msgid "RR" msgstr "RR" -#: menu.sh:1875 menu.sh:1886 menu.sh:1897 menu.sh:1907 menu.sh:1924 -#: menu.sh:1938 +#: menu.sh:1915 menu.sh:1926 menu.sh:1937 menu.sh:1947 menu.sh:1964 +#: menu.sh:1978 msgid "Update" msgstr "更新" -#: menu.sh:1876 +#: menu.sh:1916 msgid "Please enter a proxy server url" msgstr "請輸入代理伺服器網址" -#: menu.sh:1887 +#: menu.sh:1927 msgid "Invalid proxy server url, continue?" msgstr "無效的代理伺服器網址,是否繼續?" -#: menu.sh:1902 +#: menu.sh:1942 msgid "" "Please keep the attachment name consistent with the attachment name on " "Github.\\n" msgstr "請保持附件名稱與 github 上附件名稱一致。\\n" -#: menu.sh:1903 +#: menu.sh:1943 msgid "Upload update.zip will update RR.\\n" msgstr "上傳 update.zip 將更新 RR。\\n" -#: menu.sh:1904 +#: menu.sh:1944 msgid "Upload addons.zip will update Addons.\\n" msgstr "上傳 addons.zip 將更新增益集。\\n" -#: menu.sh:1905 +#: menu.sh:1945 msgid "Upload modules.zip will update Modules.\\n" msgstr "上傳 modules.zip 將更新模組。\\n" -#: menu.sh:1906 +#: menu.sh:1946 msgid "Upload rp-lkms.zip will update LKMs.\\n" msgstr "上傳 rp-lkms.zip 將更新 LKM。\\n" -#: menu.sh:1955 +#: menu.sh:1995 msgid "This person is very lazy and hasn't written anything." msgstr "這個人很懶,什麼也沒有寫。" -#: menu.sh:1956 +#: menu.sh:1996 msgid "Edit" msgstr "編輯" -#: menu.sh:1973 +#: menu.sh:2013 msgid "Choose a model" msgstr "選擇型號" -#: menu.sh:1975 +#: menu.sh:2015 msgid "Choose a version" msgstr "選擇版本" -#: menu.sh:1977 +#: menu.sh:2017 msgid "Addons menu" msgstr "增益集功能表" -#: menu.sh:1978 +#: menu.sh:2018 msgid "Modules menu" msgstr "模組功能表" -#: menu.sh:1979 +#: menu.sh:2019 msgid "Cmdline menu" msgstr "設定 Cmdline" -#: menu.sh:1980 +#: menu.sh:2020 msgid "Synoinfo menu" msgstr "Synoinfo 功能表" -#: menu.sh:1983 +#: menu.sh:2023 msgid "Advanced menu" msgstr "進階功能表" -#: menu.sh:1986 +#: menu.sh:2026 msgid "Build the loader" msgstr "編譯開機檔" -#: menu.sh:1990 +#: menu.sh:2030 msgid "Boot the loader" msgstr "開機" -#: menu.sh:1993 +#: menu.sh:2033 msgid "Choose a keymap" msgstr "選擇鍵盤" -#: menu.sh:1995 +#: menu.sh:2035 msgid "Clean disk cache" msgstr "清除磁碟快取" -#: menu.sh:1997 +#: menu.sh:2037 msgid "Update menu" msgstr "更新功能表" -#: menu.sh:1998 +#: menu.sh:2038 msgid "Notepad" msgstr "記事本" -#: menu.sh:2067 +#: menu.sh:2106 msgid "Choose a action" msgstr "選擇動作" -#: menu.sh:2068 +#: menu.sh:2107 msgid "Poweroff" msgstr "關機" -#: menu.sh:2069 +#: menu.sh:2108 msgid "Reboot" msgstr "重新開機" -#: menu.sh:2070 +#: menu.sh:2109 msgid "Reboot to RR" msgstr "重新開機並進入 RR" -#: menu.sh:2071 +#: menu.sh:2110 msgid "Back to shell" msgstr "退回到 shell" -#: menu.sh:2097 +#: menu.sh:2136 msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu" msgstr "執行 \\033[1;32mmenu.sh\\033[0m 重新進入設定選單" +#~ msgid "Show all available addons" +#~ msgstr "顯示所有可用增益集" + +#~ msgid "Show user added cmdline" +#~ msgstr "顯示使用者加入的 cmdline 參數" + +#~ msgid "Type a name of cmdline" +#~ msgstr "輸入參數的名稱" + +#~ msgid "Type a value of '%s' cmdline" +#~ msgstr "輸入 '%s' 參數的值" + +#~ msgid "Show synoinfo entries" +#~ msgstr "顯示 Synoinfo 參數" + +#~ msgid "Type a name of synoinfo entry" +#~ msgstr "輸入參數的名稱" + +#~ msgid "Type a value of '%s' synoinfo entry" +#~ msgstr "輸入 '%s' 參數的值”" + #~ msgid "" #~ "This version only support usb startup, Please select another version or " #~ "switch the startup mode." diff --git a/files/initrd/opt/rr/menu.sh b/files/initrd/opt/rr/menu.sh index 39a34822..2bea4db1 100755 --- a/files/initrd/opt/rr/menu.sh +++ b/files/initrd/opt/rr/menu.sh @@ -8,6 +8,8 @@ [ -z "${LOADER_DISK}" ] && die "$(TEXT "Loader is not init!")" +alias DIALOG='dialog --backtitle "$(backtitle)" --colors --aspect 50' + # Check partition 3 space, if < 2GiB is necessary clean cache folder CLEARCACHE=0 if [ $(cat "/sys/block/${LOADER_DISK/\/dev\//}/${LOADER_DISK_PART3/\/dev\//}/size") -lt 4194304 ]; then @@ -87,7 +89,7 @@ function modelMenu() { if [ -z "${1}" ]; then RESTRICT=1 FLGBETA=0 - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Model")" \ + DIALOG --title "$(TEXT "Model")" \ --infobox "$(TEXT "Reading models")" 0 0 echo -n "" >"${TMP_PATH}/modellist" while read M; do @@ -121,7 +123,7 @@ function modelMenu() { done < <(cat "${TMP_PATH}/modellist" | sort -r -n -k 2) [ ${FLGNEX} -eq 1 ] && echo "f \"\Z1$(TEXT "Disable flags restriction")\Zn\"" >>"${TMP_PATH}/menu" [ ${FLGBETA} -eq 0 ] && echo "b \"\Z1$(TEXT "Show all models")\Zn\"" >>"${TMP_PATH}/menu" - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --menu "$(TEXT "Choose the model")" 0 0 0 --file "${TMP_PATH}/menu" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return @@ -164,7 +166,7 @@ function modelMenu() { fi echo "$(printf "%-16s %8s %8s %8s" "${M}" "${I915}" "${HBA}" "${M_2}")" >>"${TMP_PATH}/opts" done < <(cat "${TMP_PATH}/modellist" | sort -r -n -k 2) - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --textbox "${TMP_PATH}/opts" 0 0 continue fi @@ -209,7 +211,7 @@ function modelMenu() { function productversMenu() { ITEMS="$(readConfigEntriesArray "productvers" "${WORK_PATH}/model-configs/${MODEL}.yml" | sort -r)" if [ -z "${1}" ]; then - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --no-items --menu "$(TEXT "Choose a product version")" 0 0 0 ${ITEMS} \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return @@ -220,24 +222,24 @@ function productversMenu() { resp="${1}" fi if [ "${PRODUCTVER}" = "${resp}" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \ + DIALOG --title "$(TEXT "Product Version")" \ --yesno "$(printf "$(TEXT "The current version has been set to %s. Do you want to reset the version?")" "${PRODUCTVER}")" 0 0 [ $? -ne 0 ] && return fi local KVER=$(readModelKey "${MODEL}" "productvers.[${resp}].kver") if [ -d "/sys/firmware/efi" -a "${KVER:0:1}" = "3" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \ + DIALOG --title "$(TEXT "Product Version")" \ --msgbox "$(TEXT "This version does not support UEFI startup, Please select another version or switch the startup mode.")" 0 0 return fi # if [ ! "usb" = "$(getBus "${LOADER_DISK}")" -a "${KVER:0:1}" = "5" ]; then - # dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \ + # DIALOG --title "$(TEXT "Product Version")" \ # --msgbox "$(TEXT "This version only support usb startup, Please select another version or switch the startup mode.")" 0 0 # # return # fi while true; do # get online pat data - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \ + DIALOG --title "$(TEXT "Product Version")" \ --infobox "$(TEXT "Get pat data ...")" 0 0 idx=0 while [ ${idx} -le 3 ]; do # Loop 3 times, if successful, break @@ -263,7 +265,7 @@ function productversMenu() { else MSG="$(TEXT "Successfully to get pat data,\nPlease confirm or modify as needed.")" fi - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \ + DIALOG --title "$(TEXT "Product Version")" \ --extra-button --extra-label "$(TEXT "Retry")" \ --form "${MSG}" 10 110 2 "URL" 1 1 "${paturl}" 1 5 100 0 "MD5" 2 1 "${patsum}" 2 5 100 0 \ 2>"${TMP_PATH}/resp" @@ -283,7 +285,7 @@ function productversMenu() { SMALLNUM="" writeConfigKey "buildnum" "${BUILDNUM}" "${USER_CONFIG_FILE}" writeConfigKey "smallnum" "${SMALLNUM}" "${USER_CONFIG_FILE}" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \ + DIALOG --title "$(TEXT "Product Version")" \ --infobox "$(TEXT "Reconfiguring Synoinfo, Addons and Modules")" 0 0 # Delete synoinfo and reload model/build synoinfo writeConfigKey "synoinfo" "{}" "${USER_CONFIG_FILE}" @@ -317,21 +319,22 @@ function addonMenu() { PLATFORM="$(readModelKey "${MODEL}" "platform")" KVER="$(readModelKey "${MODEL}" "productvers.[${PRODUCTVER}].kver")" KPRE="$(readModelKey "${MODEL}" "productvers.[${PRODUCTVER}].kpre")" - # Read addons from user config - unset ADDONS - declare -A ADDONS - while IFS=': ' read KEY VALUE; do - [ -n "${KEY}" ] && ADDONS["${KEY}"]="${VALUE}" - done < <(readConfigMap "addons" "${USER_CONFIG_FILE}") + NEXT="a" # Loop menu while true; do - dialog --backtitle "$(backtitle)" --colors \ + # Read addons from user config + unset ADDONS + declare -A ADDONS + while IFS=': ' read KEY VALUE; do + [ -n "${KEY}" ] && ADDONS["${KEY}"]="${VALUE}" + done < <(readConfigMap "addons" "${USER_CONFIG_FILE}") + + DIALOG \ --default-item ${NEXT} --menu "$(TEXT "Choose a option")" 0 0 0 \ a "$(TEXT "Add an addon")" \ - d "$(TEXT "Delete addon(s)")" \ - s "$(TEXT "Show user addons")" \ - m "$(TEXT "Show all available addons")" \ + d "$(TEXT "Delete addons")" \ + m "$(TEXT "Show all addons")" \ o "$(TEXT "Upload a external addon")" \ e "$(TEXT "Exit")" \ 2>${TMP_PATH}/resp @@ -345,19 +348,19 @@ function addonMenu() { echo "${ADDON} \"${DESC}\"" >>"${TMP_PATH}/menu" done < <(availableAddons "${PLATFORM}" "$([ -n "${KPRE}" ] && echo "${KPRE}-")${KVER}") if [ ! -f "${TMP_PATH}/menu" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --msgbox "$(TEXT "No available addons to add")" 0 0 NEXT="e" continue fi - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --menu "$(TEXT "Select an addon")" 0 0 0 --file "${TMP_PATH}/menu" \ 2>"${TMP_PATH}/resp" [ $? -ne 0 ] && continue ADDON="$(<"${TMP_PATH}/resp")" [ -z "${ADDON}" ] && continue - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ - --inputbox "$(TEXT "Type a optional params to addon")" 0 0 \ + DIALOG --title "$(TEXT "Addons")" \ + --inputbox "$(TEXT "Type a optional params to addon")" 0 70 \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && continue VALUE="$(<"${TMP_PATH}/resp")" @@ -368,7 +371,7 @@ function addonMenu() { d) NEXT='d' if [ ${#ADDONS[@]} -eq 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --msgbox "$(TEXT "No user addons to remove")" 0 0 continue fi @@ -376,7 +379,7 @@ function addonMenu() { for I in "${!ADDONS[@]}"; do echo "\"${I}\" \"${I}\" \"off\"" >>"${TMP_PATH}/opts" done - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --no-tags --checklist "$(TEXT "Select addon to remove")" 0 0 0 --file "${TMP_PATH}/opts" \ 2>"${TMP_PATH}/resp" [ $? -ne 0 ] && continue @@ -388,18 +391,10 @@ function addonMenu() { done touch ${PART1_PATH}/.build ;; - s) - NEXT='s' - ITEMS="" - for KEY in ${!ADDONS[@]}; do - ITEMS+="${KEY}: ${ADDONS[$KEY]}\n" - done - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ - --msgbox "${ITEMS}" 0 0 - ;; m) NEXT='m' MSG="" + MSG+="$(TEXT "Name with color \"\Z4blue\Zn\" have been added, with color \"black\" are not added.\n\n")" while read MODULE DESC; do if arrayExistItem "${MODULE}" "${!ADDONS[@]}"; then MSG+="\Z4${MODULE}\Zn" @@ -408,16 +403,16 @@ function addonMenu() { fi MSG+=": \Z5${DESC}\Zn\n" done < <(availableAddons "${PLATFORM}" "$([ -n "${KPRE}" ] && echo "${KPRE}-")${KVER}") - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --msgbox "${MSG}" 0 0 ;; o) if ! tty | grep -q "/dev/pts"; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --msgbox "$(TEXT "This feature is only available when accessed via web/ssh.")" 0 0 return fi - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --msgbox "$(TEXT "Please upload the *.addons file.")" 0 0 TMP_UP_PATH=${TMP_PATH}/users USER_FILE="" @@ -431,11 +426,11 @@ function addonMenu() { done popd if [ -z "${USER_FILE}" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --msgbox "$(TEXT "Not a valid file, please try again!")" 0 0 else if [ -d "${ADDONS_PATH}/$(basename ${USER_FILE} .addons)" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --yesno "$(TEXT "The addon already exists. Do you want to overwrite it?")" 0 0 RET=$? [ ${RET} -eq 0 ] && return @@ -443,16 +438,17 @@ function addonMenu() { ADDON="$(untarAddon "${TMP_UP_PATH}/${USER_FILE}")" if [ -n "${ADDON}" ]; then [ -f "${PART3_PATH}/addons/VERSION" ] && rm -f "${PART3_PATH}/addons/VERSION" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --msgbox "$(printf "$(TEXT "Addon '%s' added to loader, Please enable it in 'Add an addon' menu.")" "${ADDON}")" 0 0 else - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Addons")" \ + DIALOG --title "$(TEXT "Addons")" \ --msgbox "$(TEXT "File format not recognized!")" 0 0 fi fi ;; - - e) return ;; + e) + return + ;; esac done } @@ -464,7 +460,7 @@ function moduleMenu() { NEXT="c" # loop menu while true; do - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --default-item ${NEXT} --menu "$(TEXT "Choose a option")" 0 0 0 \ c "$(TEXT "Show/Select modules")" \ l "$(TEXT "Select loaded modules")" \ @@ -476,7 +472,7 @@ function moduleMenu() { case "$(<${TMP_PATH}/resp)" in c) while true; do - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Modules")" \ + DIALOG --title "$(TEXT "Modules")" \ --infobox "$(TEXT "Reading modules ...")" 0 0 ALLMODULES=$(getAllModules "${PLATFORM}" "$([ -n "${KPRE}" ] && echo "${KPRE}-")${KVER}") unset USERMODULES @@ -489,7 +485,7 @@ function moduleMenu() { arrayExistItem "${ID}" "${!USERMODULES[@]}" && ACT="on" || ACT="off" echo "${ID} ${DESC} ${ACT}" >>"${TMP_PATH}/opts" done <<<${ALLMODULES} - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Modules")" \ + DIALOG --title "$(TEXT "Modules")" \ --extra-button --extra-label "$(TEXT "Select all")" \ --help-button --help-label "$(TEXT "Deselect all")" \ --checklist "$(TEXT "Select modules to include")" 0 0 0 --file "${TMP_PATH}/opts" \ @@ -526,7 +522,7 @@ function moduleMenu() { done ;; l) - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Modules")" \ + DIALOG --title "$(TEXT "Modules")" \ --infobox "$(TEXT "Selecting loaded modules")" 0 0 KOLIST="" for I in $(lsmod | awk -F' ' '{print $1}' | grep -v 'Module'); do @@ -546,10 +542,10 @@ function moduleMenu() { MSG+="$(TEXT "This program will not determine the availability of imported modules or even make type judgments, as please double check if it is correct.\n")" MSG+="$(TEXT "If you want to remove it, please go to the \"Update Menu\" -> \"Update modules\" to forcibly update the modules. All imports will be reset.\n")" MSG+="$(TEXT "Do you want to continue?")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Modules")" \ + DIALOG --title "$(TEXT "Modules")" \ --yesno "${MSG}" 0 0 [ $? -ne 0 ] && return - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Modules")" \ + DIALOG --title "$(TEXT "Modules")" \ --msgbox "$(TEXT "Please upload the *.ko file.")" 0 0 TMP_UP_PATH=${TMP_PATH}/users USER_FILE="" @@ -565,11 +561,11 @@ function moduleMenu() { if [ -n "${USER_FILE}" -a "${USER_FILE##*.}" = "ko" ]; then addToModules ${PLATFORM} "$([ -n "${KPRE}" ] && echo "${KPRE}-")${KVER}" "${TMP_UP_PATH}/${USER_FILE}" [ -f "${PART3_PATH}/modules/VERSION" ] && rm -f "${PART3_PATH}/modules/VERSION" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Modules")" \ + DIALOG --title "$(TEXT "Modules")" \ --msgbox "$(printf "$(TEXT "Module '%s' added to %s-%s")" "${USER_FILE}" "${PLATFORM}" "$([ -n "${KPRE}" ] && echo "${KPRE}-")${KVER}")" 0 0 rm -f "${TMP_UP_PATH}/${USER_FILE}" else - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Modules")" \ + DIALOG --title "$(TEXT "Modules")" \ --msgbox "$(TEXT "Not a valid file, please try again!")" 0 0 fi ;; @@ -586,44 +582,64 @@ function moduleMenu() { ############################################################################### function cmdlineMenu() { - unset CMDLINE - declare -A CMDLINE - while IFS=': ' read KEY VALUE; do - [ -n "${KEY}" ] && CMDLINE["${KEY}"]="${VALUE}" - done < <(readConfigMap "cmdline" "${USER_CONFIG_FILE}") - echo "a \"$(TEXT "Add/edit a cmdline item")\"" >"${TMP_PATH}/menu" - echo "d \"$(TEXT "Delete cmdline item(s)")\"" >>"${TMP_PATH}/menu" - if [ -n "${MODEL}" ]; then - echo "s \"$(TEXT "Define SN/MAC")\"" >>"${TMP_PATH}/menu" - fi - echo "v \"$(TEXT "Show user added cmdline")\"" >>"${TMP_PATH}/menu" - echo "m \"$(TEXT "Show model inherent cmdline")\"" >>"${TMP_PATH}/menu" - echo "e \"$(TEXT "Exit")\"" >>"${TMP_PATH}/menu" # Loop menu while true; do - dialog --backtitle "$(backtitle)" --colors \ + echo "a \"$(TEXT "Add/Edit a cmdline item")\"" >"${TMP_PATH}/menu" + echo "d \"$(TEXT "Show/Delete cmdline items")\"" >>"${TMP_PATH}/menu" + if [ -n "${MODEL}" ]; then + echo "s \"$(TEXT "Define SN/MAC")\"" >>"${TMP_PATH}/menu" + fi + echo "m \"$(TEXT "Show model inherent cmdline")\"" >>"${TMP_PATH}/menu" + echo "e \"$(TEXT "Exit")\"" >>"${TMP_PATH}/menu" + DIALOG \ --menu "$(TEXT "Choose a option")" 0 0 0 --file "${TMP_PATH}/menu" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return case "$(<${TMP_PATH}/resp)" in a) - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cmdline")" \ - --inputbox "$(TEXT "Type a name of cmdline")" 0 0 \ - 2>${TMP_PATH}/resp - [ $? -ne 0 ] && continue - NAME="$(sed 's/://g' <"${TMP_PATH}/resp")" - [ -z "${NAME}" ] && continue - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cmdline")" \ - --inputbox "$(printf "$(TEXT "Type a value of '%s' cmdline")" "${NAME}")" 0 0 "${CMDLINE[${NAME}]}" \ - 2>${TMP_PATH}/resp - [ $? -ne 0 ] && continue - VALUE="$(<"${TMP_PATH}/resp")" - CMDLINE[${NAME}]="${VALUE}" - writeConfigKey "cmdline.${NAME}" "${VALUE}" "${USER_CONFIG_FILE}" + MSG="" + MSG+="$(TEXT "Commonly used cmdlines:\n")" + MSG+="$(TEXT " * \Z4disable_mtrr_trim=\Zn\n disables kernel trim any uncacheable memory out.\n")" + MSG+="$(TEXT " * \Z4\"intel_idle.max_cstate\"=1\Zn\n Set the maximum C-state depth allowed by the intel_idle driver.\n")" + MSG+="$(TEXT " * \Z4SataPortMap=??\Zn\n Sata Port Map.\n")" + MSG+="$(TEXT " * \Z4DiskIdxMap=??\Zn\n Disk Index Map, Modify disk name sequence.\n")" + MSG+="$(TEXT "\nEnter the parameter name and value you need to add.\n")" + LINENUM=$(($(echo -e "${MSG}" | wc -l) + 8)) + while true; do + DIALOG --title "$(TEXT "Cmdline")" \ + --form "${MSG}" ${LINENUM:-16} 70 2 "Name:" 1 1 "" 1 10 55 0 "Value:" 2 1 "" 2 10 55 0 \ + 2>"${TMP_PATH}/resp" + RET=$? + case ${RET} in + 0) # ok-button + NAME="$(cat "${TMP_PATH}/resp" | sed -n '1p')" + VALUE="$(cat "${TMP_PATH}/resp" | sed -n '2p')" + if [ -z "${NAME}" ]; then + DIALOG --title "$(TEXT "Cmdline")" \ + --yesno "$(TEXT "Invalid parameter name, retry?")" 0 0 + [ $? -eq 0 ] && break + fi + writeConfigKey "cmdline.[${NAME}]" "${VALUE}" "${USER_CONFIG_FILE}" + break + ;; + 1) # cancel-button + break + ;; + 255) # ESC + break + ;; + esac + done ;; d) + # Read cmdline from user config + unset CMDLINE + declare -A CMDLINE + while IFS=': ' read KEY VALUE; do + [ -n "${KEY}" ] && CMDLINE["${KEY}"]="${VALUE}" + done < <(readConfigMap "cmdline" "${USER_CONFIG_FILE}") if [ ${#CMDLINE[@]} -eq 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cmdline")" \ + DIALOG --title "$(TEXT "Cmdline")" \ --msgbox "$(TEXT "No user cmdline to remove")" 0 0 continue fi @@ -631,7 +647,7 @@ function cmdlineMenu() { for I in "${!CMDLINE[@]}"; do echo "\"${I}\" \"${CMDLINE[${I}]}\" \"off\"" >>"${TMP_PATH}/opts" done - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cmdline")" \ + DIALOG --title "$(TEXT "Cmdline")" \ --checklist "$(TEXT "Select cmdline to remove")" 0 0 0 --file "${TMP_PATH}/opts" \ 2>"${TMP_PATH}/resp" [ $? -ne 0 ] && continue @@ -647,9 +663,9 @@ function cmdlineMenu() { sn="${SN}" mac1="${MAC1}" while true; do - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cmdline")" \ + DIALOG --title "$(TEXT "Cmdline")" \ --extra-button --extra-label "$(TEXT "Random")" \ - --form "${MSG}" 10 110 2 "sn" 1 1 "${sn}" 1 5 100 0 "mac1" 2 1 "${mac1}" 2 5 100 0 \ + --form "${MSG}" 10 60 2 "sn" 1 1 "${sn}" 1 5 50 0 "mac1" 2 1 "${mac1}" 2 5 50 0 \ 2>"${TMP_PATH}/resp" RET=$? case ${RET} in @@ -657,7 +673,7 @@ function cmdlineMenu() { sn="$(cat "${TMP_PATH}/resp" | sed -n '1p')" mac1="$(cat "${TMP_PATH}/resp" | sed -n '2p')" if [ -z "${sn}" -o -z "${mac1}" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cmdline")" \ + DIALOG --title "$(TEXT "Cmdline")" \ --yesno "$(TEXT "Invalid SN/MAC, retry?")" 0 0 [ $? -eq 0 ] && break fi @@ -681,20 +697,12 @@ function cmdlineMenu() { esac done ;; - v) - ITEMS="" - for KEY in ${!CMDLINE[@]}; do - ITEMS+="${KEY}: ${CMDLINE[$KEY]}\n" - done - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cmdline")" \ - --msgbox "${ITEMS}" 0 0 - ;; m) ITEMS="" while IFS=': ' read KEY VALUE; do ITEMS+="${KEY}: ${VALUE}\n" done < <(readModelMap "${MODEL}" "productvers.[${PRODUCTVER}].cmdline") - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cmdline")" \ + DIALOG --title "$(TEXT "Cmdline")" \ --msgbox "${ITEMS}" 0 0 ;; e) return ;; @@ -704,44 +712,61 @@ function cmdlineMenu() { ############################################################################### function synoinfoMenu() { - # Read synoinfo from user config - unset SYNOINFO - declare -A SYNOINFO - while IFS=': ' read KEY VALUE; do - [ -n "${KEY}" ] && SYNOINFO["${KEY}"]="${VALUE}" - done < <(readConfigMap "synoinfo" "${USER_CONFIG_FILE}") - - echo "a \"$(TEXT "Add/edit a synoinfo item")\"" >"${TMP_PATH}/menu" - echo "d \"$(TEXT "Delete synoinfo item(s)")\"" >>"${TMP_PATH}/menu" - echo "s \"$(TEXT "Show synoinfo entries")\"" >>"${TMP_PATH}/menu" - echo "e \"$(TEXT "Exit")\"" >>"${TMP_PATH}/menu" - - # menu loop + # Loop menu while true; do - dialog --backtitle "$(backtitle)" --colors \ + echo "a \"$(TEXT "Add/edit a synoinfo item")\"" >"${TMP_PATH}/menu" + echo "d \"$(TEXT "Show/Delete synoinfo items")\"" >>"${TMP_PATH}/menu" + echo "e \"$(TEXT "Exit")\"" >>"${TMP_PATH}/menu" + DIALOG \ --menu "$(TEXT "Choose a option")" 0 0 0 --file "${TMP_PATH}/menu" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return case "$(<${TMP_PATH}/resp)" in a) - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Synoinfo")" \ - --inputbox "$(TEXT "Type a name of synoinfo entry")" 0 0 \ - 2>${TMP_PATH}/resp - [ $? -ne 0 ] && continue - NAME="$(<"${TMP_PATH}/resp")" - [ -z "${NAME}" ] && continue - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Synoinfo")" \ - --inputbox "$(printf "$(TEXT "Type a value of '%s' synoinfo entry")" "${NAME}")" 0 0 "${SYNOINFO[${NAME}]}" \ - 2>${TMP_PATH}/resp - [ $? -ne 0 ] && continue - VALUE="$(<"${TMP_PATH}/resp")" - SYNOINFO[${NAME}]="${VALUE}" - writeConfigKey "synoinfo.${NAME}" "${VALUE}" "${USER_CONFIG_FILE}" - touch ${PART1_PATH}/.build + MSG="" + MSG+="$(TEXT "Commonly used synoinfo:\n")" + MSG+="$(TEXT " * \Z4maxdisks=??\Zn\n Maximum number of disks supported.\n")" + MSG+="$(TEXT " * \Z4internalportcfg=0x????\Zn\n Internal(sata) disks mask.\n")" + MSG+="$(TEXT " * \Z4esataportcfg=0x????\Zn\n Esata disks mask.\n")" + MSG+="$(TEXT " * \Z4usbportcfg=0x????\Zn\n USB disks mask.\n")" + MSG+="$(TEXT "\nEnter the parameter name and value you need to add.\n")" + LINENUM=$(($(echo -e "${MSG}" | wc -l) + 8)) + while true; do + DIALOG --title "$(TEXT "Cmdline")" \ + --form "${MSG}" ${LINENUM:-16} 70 2 "Name:" 1 1 "" 1 10 55 0 "Value:" 2 1 "" 2 10 55 0 \ + 2>"${TMP_PATH}/resp" + RET=$? + case ${RET} in + 0) # ok-button + NAME="$(cat "${TMP_PATH}/resp" | sed -n '1p')" + VALUE="$(cat "${TMP_PATH}/resp" | sed -n '2p')" + if [ -z "${NAME}" ]; then + DIALOG --title "$(TEXT "Cmdline")" \ + --yesno "$(TEXT "Invalid parameter name, retry?")" 0 0 + [ $? -eq 0 ] && break + fi + writeConfigKey "synoinfo.[${NAME}]" "${VALUE}" "${USER_CONFIG_FILE}" + touch ${PART1_PATH}/.build + break + ;; + 1) # cancel-button + break + ;; + 255) # ESC + break + ;; + esac + done ;; d) + # Read synoinfo from user config + unset SYNOINFO + declare -A SYNOINFO + while IFS=': ' read KEY VALUE; do + [ -n "${KEY}" ] && SYNOINFO["${KEY}"]="${VALUE}" + done < <(readConfigMap "synoinfo" "${USER_CONFIG_FILE}") if [ ${#SYNOINFO[@]} -eq 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Synoinfo")" \ + DIALOG --title "$(TEXT "Synoinfo")" \ --msgbox "$(TEXT "No synoinfo entries to remove")" 0 0 continue fi @@ -749,7 +774,7 @@ function synoinfoMenu() { for I in ${!SYNOINFO[@]}; do echo "\"${I}\" \"${SYNOINFO[${I}]}\" \"off\"" >>"${TMP_PATH}/opts" done - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Synoinfo")" \ + DIALOG --title "$(TEXT "Synoinfo")" \ --checklist "$(TEXT "Select synoinfo entry to remove")" 0 0 0 --file "${TMP_PATH}/opts" \ 2>"${TMP_PATH}/resp" [ $? -ne 0 ] && continue @@ -761,14 +786,6 @@ function synoinfoMenu() { done touch ${PART1_PATH}/.build ;; - s) - ITEMS="" - for KEY in ${!SYNOINFO[@]}; do - ITEMS+="${KEY}: ${SYNOINFO[$KEY]}\n" - done - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Synoinfo")" \ - --msgbox "${ITEMS}" 0 0 - ;; e) return ;; esac done @@ -777,6 +794,7 @@ function synoinfoMenu() { ############################################################################### # Extract linux and ramdisk files from the DSM .pat function extractDsmFiles() { + MKERR_FILE="${1:-"${TMP_PATH}/makeerror.log"}" PATURL="$(readConfigKey "paturl" "${USER_CONFIG_FILE}")" PATSUM="$(readConfigKey "patsum" "${USER_CONFIG_FILE}")" @@ -818,8 +836,7 @@ function extractDsmFiles() { if [ ${RET} -ne 0 -o ${STATUS} -ne 200 ]; then rm -f "${PAT_PATH}" MSG="$(printf "$(TEXT "Check internet or cache disk space.\nError: %d:%d")" "${RET}" "${STATUS}")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "${MSG}" 0 0 + echo -e "${MSG}" >"${MKERR_FILE}" return 1 fi fi @@ -827,8 +844,7 @@ function extractDsmFiles() { echo -n "$(printf "$(TEXT "Checking hash of %s: ")" "${PAT_FILE}")" if [ "$(md5sum ${PAT_PATH} | awk '{print $1}')" != "${PATSUM}" ]; then rm -f ${PAT_PATH} - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "$(TEXT "md5 hash of pat not match, Please reget pat data from the version menu and try again!")" 0 0 + echo -e "$(TEXT "md5 hash of pat not match, Please reget pat data from the version menu and try again!")" >"${MKERR_FILE}" return 1 fi echo "$(TEXT "OK")" @@ -852,8 +868,7 @@ function extractDsmFiles() { isencrypted="yes" ;; *) - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "$(TEXT "Could not determine if pat file is encrypted or not, maybe corrupted, try again!")" 0 0 + echo -e "$(TEXT "Could not determine if pat file is encrypted or not, maybe corrupted, try again!")" >"${MKERR_FILE}" return 1 ;; esac @@ -882,8 +897,7 @@ function extractDsmFiles() { if [ ${RET} -ne 0 -o ${STATUS} -ne 200 ]; then rm -f "${OLDPAT_PATH}" MSG="$(printf "$(TEXT "Check internet or cache disk space.\nError: %d:%d")" "${RET}" "${STATUS}")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "${MSG}" 0 0 + echo -e "${MSG}" >"${MKERR_FILE}" return 1 fi fi @@ -894,8 +908,7 @@ function extractDsmFiles() { if [ $? -ne 0 ]; then rm -f "${OLDPAT_PATH}" rm -rf "${RAMDISK_PATH}" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --textbox "${LOG_FILE}" 0 0 + echo -e "${LOG_FILE}" >"${MKERR_FILE}" return 1 fi [ ${CLEARCACHE} -eq 1 ] && rm -f "${OLDPAT_PATH}" @@ -918,16 +931,15 @@ function extractDsmFiles() { echo "$(TEXT "Extracting...")" tar -xf "${PAT_PATH}" -C "${UNTAR_PAT_PATH}" >"${LOG_FILE}" 2>&1 if [ $? -ne 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --textbox "${LOG_FILE}" 0 0 + echo -e "${LOG_FILE}" >"${MKERR_FILE}" + return 1 fi fi if [ ! -f ${UNTAR_PAT_PATH}/grub_cksum.syno ] || [ ! -f ${UNTAR_PAT_PATH}/GRUB_VER ] || [ ! -f ${UNTAR_PAT_PATH}/zImage ] || [ ! -f ${UNTAR_PAT_PATH}/rd.gz ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "$(TEXT "pat Invalid, try again!")" 0 0 + echo -e "$(TEXT "pat Invalid, try again!")" >"${MKERR_FILE}" return 1 fi echo -n "$(TEXT "Setting hash: ")" @@ -951,50 +963,60 @@ function extractDsmFiles() { ############################################################################### # Where the magic happens! function make() { - PLATFORM="$(readModelKey "${MODEL}" "platform")" - KVER="$(readModelKey "${MODEL}" "productvers.[${PRODUCTVER}].kver")" - KPRE="$(readModelKey "${MODEL}" "productvers.[${PRODUCTVER}].kpre")" - # Check if all addon exists - while IFS=': ' read ADDON PARAM; do - [ -z "${ADDON}" ] && continue - if ! checkAddonExist "${ADDON}" "${PLATFORM}" "$([ -n "${KPRE}" ] && echo "${KPRE}-")${KVER}"; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "$(printf "$(TEXT "Addon %s not found!")" "${ADDON}")" 0 0 - return 1 + MKERR_FILE="${TMP_PATH}/makeerror.log" + rm -f "${MKERR_FILE}" + while true; do + PLATFORM="$(readModelKey "${MODEL}" "platform")" + KVER="$(readModelKey "${MODEL}" "productvers.[${PRODUCTVER}].kver")" + KPRE="$(readModelKey "${MODEL}" "productvers.[${PRODUCTVER}].kpre")" + # Check if all addon exists + while IFS=': ' read ADDON PARAM; do + [ -z "${ADDON}" ] && continue + if ! checkAddonExist "${ADDON}" "${PLATFORM}" "$([ -n "${KPRE}" ] && echo "${KPRE}-")${KVER}"; then + echo -e "$(printf "$(TEXT "Addon %s not found!")" "${ADDON}")" >"${MKERR_FILE}" + break 2 + fi + done < <(readConfigMap "addons" "${USER_CONFIG_FILE}") + + if [ ! -f "${ORI_ZIMAGE_FILE}" -o ! -f "${ORI_RDGZ_FILE}" ]; then + extractDsmFiles "${MKERR_FILE}" + [ $? -ne 0 ] && break fi - done < <(readConfigMap "addons" "${USER_CONFIG_FILE}") - if [ ! -f "${ORI_ZIMAGE_FILE}" -o ! -f "${ORI_RDGZ_FILE}" ]; then - extractDsmFiles - [ $? -ne 0 ] && return 1 - fi + # Check disk space left + SPACELEFT=$(df --block-size=1 | grep ${LOADER_DISK_PART3} | awk '{print $4}') + [ ${SPACELEFT} -le 268435456 ] && rm -rf "${PART3_PATH}/dl" - # Check disk space left - SPACELEFT=$(df --block-size=1 | grep ${LOADER_DISK_PART3} | awk '{print $4}') - [ ${SPACELEFT} -le 268435456 ] && rm -rf "${PART3_PATH}/dl" + ${WORK_PATH}/zimage-patch.sh + if [ $? -ne 0 ]; then + echo -e "$(TEXT "zImage not patched,\nPlease upgrade the bootloader version and try again.\nPatch error:\n")$(<"${LOG_FILE}")" >"${MKERR_FILE}" + break + fi - ${WORK_PATH}/zimage-patch.sh - if [ $? -ne 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "$(TEXT "zImage not patched,\nPlease upgrade the bootloader version and try again.\nPatch error:\n")$(<"${LOG_FILE}")" 0 0 + ${WORK_PATH}/ramdisk-patch.sh + if [ $? -ne 0 ]; then + echo -e "$(TEXT "Ramdisk not patched,\nPlease upgrade the bootloader version and try again.\nPatch error:\n")$(<"${LOG_FILE}")" >"${MKERR_FILE}" + break + fi + rm -f ${PART1_PATH}/.build + PRODUCTVER="$(readConfigKey "productver" "${USER_CONFIG_FILE}")" + BUILDNUM="$(readConfigKey "buildnum" "${USER_CONFIG_FILE}")" + SMALLNUM="$(readConfigKey "smallnum" "${USER_CONFIG_FILE}")" + echo "$(TEXT "Cleaning ...")" + rm -rf "${UNTAR_PAT_PATH}" + echo "$(TEXT "Ready!")" + rm -f "${MKERR_FILE}" + sleep 3 + break + done 2>&1 | DIALOG --title "$(TEXT "Main menu")" --cr-wrap --no-collapse \ + --progressbox "$(TEXT "Making ...")" 20 100 + if [ -f "${MKERR_FILE}" ]; then + DIALOG --title "$(TEXT "Error")" \ + --msgbox "$(cat ${MKERR_FILE})" 0 0 return 1 + else + return 0 fi - - ${WORK_PATH}/ramdisk-patch.sh - if [ $? -ne 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Error")" \ - --msgbox "$(TEXT "Ramdisk not patched,\nPlease upgrade the bootloader version and try again.\nPatch error:\n")$(<"${LOG_FILE}")" 0 0 - return 1 - fi - rm -f ${PART1_PATH}/.build - PRODUCTVER="$(readConfigKey "productver" "${USER_CONFIG_FILE}")" - BUILDNUM="$(readConfigKey "buildnum" "${USER_CONFIG_FILE}")" - SMALLNUM="$(readConfigKey "smallnum" "${USER_CONFIG_FILE}")" - echo "$(TEXT "Cleaning ...")" - rm -rf "${UNTAR_PAT_PATH}" - echo "$(TEXT "Ready!")" - sleep 3 - return 0 } ############################################################################### @@ -1035,11 +1057,12 @@ function advancedMenu() { echo "b \"$(TEXT "Backup bootloader disk # test")\"" >>"${TMP_PATH}/menu" echo "r \"$(TEXT "Restore bootloader disk # test")\"" >>"${TMP_PATH}/menu" fi + echo "v \"$(TEXT "Report bugs to the author")\"" >>"${TMP_PATH}/menu" echo "o \"$(TEXT "Install development tools")\"" >>"${TMP_PATH}/menu" echo "g \"$(TEXT "Show QR logo:") \Z4${DSMLOGO}\Zn\"" >>"${TMP_PATH}/menu" echo "e \"$(TEXT "Exit")\"" >>"${TMP_PATH}/menu" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --default-item "${NEXT}" --menu "$(TEXT "Advanced option")" 0 0 0 --file "${TMP_PATH}/menu" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && break @@ -1063,7 +1086,7 @@ function advancedMenu() { ;; i) ITEMS="$(echo -e "1 \n5 \n10 \n30 \n60 \n")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --default-item "${BOOTIPWAIT}" --no-items --menu "$(TEXT "Choose a time(seconds)")" 0 0 0 ${ITEMS} \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return @@ -1075,7 +1098,7 @@ function advancedMenu() { ;; w) ITEMS="$(echo -e "1 \n5 \n10 \n30 \n60 \n")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --default-item "${BOOTWAIT}" --no-items --menu "$(TEXT "Choose a time(seconds)")" 0 0 0 ${ITEMS} \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return @@ -1095,7 +1118,7 @@ function advancedMenu() { echo "5 \"Reboot after 5 seconds\"" >>"${TMP_PATH}/opts" echo "0 \"No reboot\"" >>"${TMP_PATH}/opts" echo "-1 \"Restart immediately\"" >>"${TMP_PATH}/opts" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --default-item "${KERNELPANIC}" --menu "$(TEXT "Choose a time(seconds)")" 0 0 0 --file "${TMP_PATH}/opts" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return @@ -1118,7 +1141,7 @@ function advancedMenu() { ITEMS+="${ETH}(${MACR}) ${IDX} 1 ${IPR:-\"\"} ${IDX} 22 20 16 " done echo ${ITEMS} >"${TMP_PATH}/opts" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --form "${MSG}" 10 44 ${IDX} --file "${TMP_PATH}/opts" \ 2>"${TMP_PATH}/resp" [ $? -ne 0 ] && continue @@ -1142,7 +1165,7 @@ function advancedMenu() { done sleep 1 IP="$(getIP)" - ) 2>&1 | dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + ) 2>&1 | DIALOG --title "$(TEXT "Advanced")" \ --progressbox "$(TEXT "Setting IP ...")" 20 100 NEXT="e" ;; @@ -1206,14 +1229,14 @@ function advancedMenu() { MSG+="\n" MSG+="$(printf "$(TEXT "\nTotal of ports: %s\n")" "${NUMPORTS}")" MSG+="$(TEXT "\nPorts with color \Z1red\Zn as DUMMY, color \Z2\Zbgreen\Zn has drive connected.")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "${MSG}" 0 0 ;; c) PATURL="$(readConfigKey "paturl" "${USER_CONFIG_FILE}")" PATSUM="$(readConfigKey "patsum" "${USER_CONFIG_FILE}")" MSG="$(TEXT "pat: (editable)")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --form "${MSG}" 10 110 2 "URL" 1 1 "${PATURL}" 1 5 100 0 "MD5" 2 1 "${PATSUM}" 2 5 100 0 \ 2>"${TMP_PATH}/resp" [ $? -ne 0 ] && return @@ -1231,7 +1254,7 @@ function advancedMenu() { MSG+="$(TEXT "This feature will allow you to downgrade the installation by removing the VERSION file from the first partition of all disks.\n")" MSG+="$(TEXT "Therefore, please insert all disks before continuing.\n")" MSG+="$(TEXT "Warning:\nThis operation is irreversible. Please backup important data. Do you want to continue?")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --yesno "${MSG}" 0 0 [ $? -ne 0 ] && return ( @@ -1244,10 +1267,10 @@ function advancedMenu() { umount "${I}" done rm -rf "${TMP_PATH}/sdX1" - ) 2>&1 | dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + ) 2>&1 | DIALOG --title "$(TEXT "Advanced")" \ --progressbox "$(TEXT "Removing ...")" 20 100 MSG="$(TEXT "Remove VERSION file for all disks completed.")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "${MSG}" 0 0 ;; f) @@ -1257,17 +1280,17 @@ function advancedMenu() { echo "${POSITION}" | grep -q "${LOADER_DISK}" && continue echo "\"${POSITION}\" \"${NAME}\" \"off\"" >>"${TMP_PATH}/opts" done < <(ls -l /dev/disk/by-id/ | sed 's|../..|/dev|g' | grep -E "/dev/sd|/dev/nvme" | awk -F' ' '{print $NF" "$(NF-2)}' | sort -uk 1,1) - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --checklist "$(TEXT "Advanced")" 0 0 0 --file "${TMP_PATH}/opts" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return RESP=$(<"${TMP_PATH}/resp") [ -z "${RESP}" ] && return - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --yesno "$(TEXT "Warning:\nThis operation is irreversible. Please backup important data. Do you want to continue?")" 0 0 [ $? -ne 0 ] && return if [ $(ls /dev/md* | wc -l) -gt 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --yesno "$(TEXT "Warning:\nThe current hds is in raid, do you still want to format them?")" 0 0 [ $? -ne 0 ] && return for I in $(ls /dev/md*); do @@ -1278,9 +1301,9 @@ function advancedMenu() { for I in ${RESP}; do echo y | mkfs.ext4 -T largefile4 "${I}" done - ) 2>&1 | dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + ) 2>&1 | DIALOG --title "$(TEXT "Advanced")" \ --progressbox "$(TEXT "Formatting ...")" 20 100 - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "Formatting is complete.")" 0 0 ;; x) @@ -1297,12 +1320,12 @@ function advancedMenu() { done rm -rf "${TMP_PATH}/sdX1" if [ -z "${SHADOW_FILE}" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "The installed Syno system not found in the currently inserted disks!")" 0 0 return fi ITEMS="$(cat "${SHADOW_FILE}" | awk -F ':' '{if ($2 != "*" && $2 != "!!") {print $1;}}')" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --no-items --menu "$(TEXT "Choose a user name")" 0 0 0 ${ITEMS} \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return @@ -1310,13 +1333,13 @@ function advancedMenu() { [ -z "${USER}" ] && return OLDPASSWD="$(cat "${SHADOW_FILE}" | grep "^${USER}:" | awk -F ':' '{print $2}')" while true; do - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ - --inputbox "$(printf "$(TEXT "Type a new password for user '%s'")" "${USER}")" 0 0 "${CMDLINE[${NAME}]}" \ + DIALOG --title "$(TEXT "Advanced")" \ + --inputbox "$(printf "$(TEXT "Type a new password for user '%s'")" "${USER}")" 0 70 "${CMDLINE[${NAME}]}" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && break 2 VALUE="$(<"${TMP_PATH}/resp")" [ -n "${VALUE}" ] && break - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "Invalid password")" 0 0 done NEWPASSWD="$(python -c "import crypt,getpass;pw=\"${VALUE}\";print(crypt.crypt(pw))")" @@ -1329,19 +1352,17 @@ function advancedMenu() { umount "${I}" done rm -rf "${TMP_PATH}/sdX1" - ) 2>&1 | dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + ) 2>&1 | DIALOG --title "$(TEXT "Advanced")" \ --progressbox "$(TEXT "Resetting ...")" 20 100 [ -f "${SHADOW_FILE}" ] && rm -rf "${SHADOW_FILE}" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "Password reset completed.")" 0 0 - # dialog --backtitle "`backtitle`" --title "$(TEXT "Advanced")" \ - # --msgbox "$(TEXT "You came early, this function has not been implemented yet, hahaha!")" 0 0 ;; p) - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --yesno "$(TEXT "Warning:\nDo not terminate midway, otherwise it may cause damage to the RR. Do you want to continue?")" 0 0 [ $? -ne 0 ] && return - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --infobox "$(TEXT "Saving ...")" 0 0 RDXZ_PATH="${TMP_PATH}/rdxz_tmp" mkdir -p "${RDXZ_PATH}" @@ -1356,16 +1377,16 @@ function advancedMenu() { find . 2>/dev/null | cpio -o -H newc -R root:root | xz --check=crc32 >"${RR_RAMDISK_FILE}" ) || true rm -rf "${RDXZ_PATH}" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox ""$(TEXT "Save is complete.")"" 0 0 ;; d) if ! tty | grep -q "/dev/pts"; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "This feature is only available when accessed via web/ssh.")" 0 0 return fi - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "Currently, only dts format files are supported. Please prepare and click to confirm uploading.\n(saved in /mnt/p3/users/)")" 0 0 TMP_UP_PATH="${TMP_PATH}/users" rm -rf "${TMP_UP_PATH}" @@ -1380,31 +1401,31 @@ function advancedMenu() { done popd if [ ${RET} -ne 0 -o -z "${USER_FILE}" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "Not a valid dts file, please try again!")" 0 0 else [ -d "{USER_UP_PATH}" ] || mkdir -p "${USER_UP_PATH}" cp -f "${USER_FILE}" "${USER_UP_PATH}/${MODEL}.dts" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "A valid dts file, Automatically import at compile time.")" 0 0 fi touch ${PART1_PATH}/.build ;; b) if ! tty | grep -q "/dev/pts"; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "This feature is only available when accessed via web/ssh.")" 0 0 return fi - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --yesno "$(TEXT "Warning:\nDo not terminate midway, otherwise it may cause damage to the RR. Do you want to continue?")" 0 0 [ $? -ne 0 ] && return - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --infobox "$(TEXT "Backuping...")" 0 0 rm -f /var/www/data/backup.img.gz # thttpd root path dd if="${LOADER_DISK}" bs=1M conv=fsync | gzip >/var/www/data/backup.img.gz if [ $? -ne 0]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "Failed to generate backup. There may be insufficient memory. Please clear the cache and try again!")" 0 0 return fi @@ -1414,22 +1435,22 @@ function advancedMenu() { echo " ↑ " >>${TMP_PATH}/resp echo "$(TEXT "Click on the address above to download.")" >>${TMP_PATH}/resp echo "$(TEXT "Please confirm the completion of the download before closing this window.")" >>${TMP_PATH}/resp - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --editbox "${TMP_PATH}/resp" 10 100 else # ssh sz -be /var/www/data/backup.img.gz fi - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "backup is complete.")" 0 0 rm -f /var/www/data/backup.img.gz ;; r) if ! tty | grep -q "/dev/pts"; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "This feature is only available when accessed via web/ssh.")" 0 0 return fi - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --yesno "$(TEXT "Please upload the backup file.\nCurrently, zip(github) and img.gz(backup) compressed file formats are supported.")" 0 0 [ $? -ne 0 ] && return IFTOOL="" @@ -1446,16 +1467,16 @@ function advancedMenu() { done popd if [ -z "${IFTOOL}" -o ! -f "${TMP_UP_PATH}/${USER_FILE}" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(printf "$(TEXT "Not a valid .zip/.img.gz file, please try again!")" "${USER_FILE}")" 0 0 else - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --yesno "$(TEXT "Warning:\nDo not terminate midway, otherwise it may cause damage to the RR. Do you want to continue?")" 0 0 [ $? -ne 0 ] && ( rm -f "${TMP_UP_PATH}/${USER_FILE}" return ) - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --infobox "$(TEXT "Writing...")" 0 0 umount "${PART1_PATH}" "${PART2_PATH}" "${PART3_PATH}" if [ "${IFTOOL}" = "zip" ]; then @@ -1463,24 +1484,49 @@ function advancedMenu() { elif [ "${IFTOOL}" = "gzip" ]; then gzip -dc "${TMP_UP_PATH}/${USER_FILE}" | dd of="${LOADER_DISK}" bs=1M conv=fsync fi - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --yesno "$(printf "$(TEXT "Restore bootloader disk with success to %s!\nReboot?")" "${USER_FILE}")" 0 0 [ $? -ne 0 ] && continue reboot exit fi ;; + v) + if [ -d "${PART1_PATH}/logs" ]; then + rm -f "${TMP_PATH}/logs.tar.gz" + tar -czf "${TMP_PATH}/logs.tar.gz" -C "${PART1_PATH}" logs + if [ -z "${SSH_TTY}" ]; then # web + mv -f "${TMP_PATH}/logs.tar.gz" "/var/www/data/logs.tar.gz" + URL="http://$(getIP)/logs.tar.gz" + DIALOG --title "$(TEXT "Advanced")" \ + --msgbox "$(printf "$(TEXT "Please via %s to download the logs,\nAnd go to github to create an issue and upload the logs.")" "${URL}")" 0 0 + else + sz -be "${TMP_PATH}/logs.tar.gz" + DIALOG --title "$(TEXT "Advanced")" \ + --msgbox "$(TEXT "Please go to github to create an issue and upload the logs.")" 0 0 + fi + else + MSG="" + MSG+="$(TEXT "\Z1No logs found!\Zn\n\n")" + MSG+="$(TEXT "Please do as follows:\n")" + MSG+="$(TEXT " 1. Add dbgutils in addons and rebuild.\n")" + MSG+="$(TEXT " 2. Wait 10 minutes after booting.\n")" + MSG+="$(TEXT " 3. Reboot into RR and go to this option.\n")" + DIALOG --title "$(TEXT "Advanced")" \ + --msgbox "${MSG}" 0 0 + fi + ;; o) - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --yesno "$(TEXT "This option only installs opkg package management, allowing you to install more tools for use and debugging. Do you want to continue?")" 0 0 [ $? -ne 0 ] && return ( wget -O - http://bin.entware.net/x64-k3.2/installer/generic.sh | /bin/sh opkg update #opkg install python3 python3-pip - ) 2>&1 | dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + ) 2>&1 | DIALOG --title "$(TEXT "Advanced")" \ --progressbox "$(TEXT "opkg installing ...")" 20 100 - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ + DIALOG --title "$(TEXT "Advanced")" \ --msgbox "$(TEXT "opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/.bashrc'")" 0 0 ;; g) @@ -1496,7 +1542,7 @@ function advancedMenu() { ############################################################################### # Try to recovery a DSM already installed function tryRecoveryDSM() { - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Try recovery DSM")" \ + DIALOG --title "$(TEXT "Try recovery DSM")" \ --infobox "$(TEXT "Trying to recovery a DSM installed system ...")" 0 0 if findAndMountDSMRoot; then MODEL="" @@ -1531,14 +1577,14 @@ function tryRecoveryDSM() { writeConfigKey "sn" "${SN}" "${USER_CONFIG_FILE}" MSG+="$(printf "$(TEXT "\nSerial: %s")" "${SN}")" fi - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Try recovery DSM")" \ + DIALOG --title "$(TEXT "Try recovery DSM")" \ --msgbox "${MSG}" 0 0 fi fi fi fi else - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Try recovery DSM")" \ + DIALOG --title "$(TEXT "Try recovery DSM")" \ --msgbox "$(TEXT "Unfortunately I couldn't mount the DSM partition!")" 0 0 fi } @@ -1547,13 +1593,13 @@ function tryRecoveryDSM() { # Permits user edit the user config function editUserConfig() { while true; do - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Edit with caution")" \ + DIALOG --title "$(TEXT "Edit with caution")" \ --editbox "${USER_CONFIG_FILE}" 0 0 2>"${TMP_PATH}/userconfig" [ $? -ne 0 ] && return mv -f "${TMP_PATH}/userconfig" "${USER_CONFIG_FILE}" ERRORS=$(yq eval "${USER_CONFIG_FILE}" 2>&1) [ $? -eq 0 ] && break - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Edit with caution")" \ + DIALOG --title "$(TEXT "Edit with caution")" \ --msgbox "${ERRORS}" 0 0 done OLDMODEL=${MODEL} @@ -1576,7 +1622,7 @@ function editUserConfig() { # Permits user edit the grub.cfg function editGrubCfg() { while true; do - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Edit with caution")" \ + DIALOG --title "$(TEXT "Edit with caution")" \ --editbox "${GRUB_PATH}/grub.cfg" 0 0 2>"${TMP_PATH}/usergrub.cfg" [ $? -ne 0 ] && return mv -f "${TMP_PATH}/usergrub.cfg" "${GRUB_PATH}/grub.cfg" @@ -1587,11 +1633,10 @@ function editGrubCfg() { ############################################################################### # Calls boot.sh to boot into DSM kernel/ramdisk function boot() { - [ -f ${PART1_PATH}/.build ] && dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Alert")" \ + [ -f ${PART1_PATH}/.build ] && DIALOG --title "$(TEXT "Alert")" \ --yesno "$(TEXT "Config changed, would you like to rebuild the loader?")" 0 0 if [ $? -eq 0 ]; then - make 2>&1 | dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Main menu")" --cr-wrap --no-collapse \ - --progressbox "$(TEXT "Making ...")" 20 100 || return + make || return fi ${WORK_PATH}/boot.sh } @@ -1600,7 +1645,7 @@ function boot() { # Shows language to user choose one function languageMenu() { ITEMS="$(ls /usr/share/locale)" - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --default-item "${LAYOUT}" --no-items --menu "$(TEXT "Choose a language")" 0 0 0 ${ITEMS} 2>${TMP_PATH}/resp [ $? -ne 0 ] && return resp=$(cat ${TMP_PATH}/resp 2>/dev/null) @@ -1614,7 +1659,7 @@ function languageMenu() { # Shows available keymaps to user choose one function keymapMenu() { OPTIONS="azerty bepo carpalx colemak dvorak fgGIod neo olpc qwerty qwertz" - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --default-item "${LAYOUT}" --no-items --menu "$(TEXT "Choose a layout")" 0 0 0 ${OPTIONS} \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return @@ -1626,7 +1671,7 @@ function keymapMenu() { cd /usr/share/keymaps/i386/${LAYOUT} ls *.map.gz ) - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --default-item "${KEYMAP}" --no-items --menu "$(TEXT "Choice a keymap")" 0 0 0 ${OPTIONS} \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return @@ -1648,7 +1693,7 @@ function downloadExts() { [ -n "${PROXY}" ] && [[ "${PROXY: -1}" != "/" ]] && PROXY="${PROXY}/" T="$(printf "$(TEXT "Update %s")" "${1}")" - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --infobox "$(TEXT "Checking last version ...")" 0 0 if [ "${PRERELEASE}" = "true" ]; then TAG="$(curl -skL "${PROXY}${3}/tags" | grep /refs/tags/.*\.zip | head -1 | sed -r 's/.*\/refs\/tags\/(.*)\.zip.*$/\1/')" @@ -1661,21 +1706,21 @@ function downloadExts() { [ "${TAG:0:1}" = "v" ] && TAG="${TAG:1}" if [ -z "${TAG}" -o "${TAG}" = "latest" ]; then if [ ! "${5}" = "0" ]; then - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --infobox "$(printf "$(TEXT "Error checking new version.\nError: TAG is %s")" "${TAG}")" 0 0 else - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --msgbox "$(printf "$(TEXT "Error checking new version.\nError: TAG is %s")" "${TAG}")" 0 0 fi return 1 fi if [ "${2}" = "${TAG}" ]; then if [ ! "${5}" = "0" ]; then - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --infobox "$(TEXT "No new version.")" 0 0 return 1 else - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --yesno "$(printf "$(TEXT "No new version. Actual version is %s\nForce update?")" "${2}")" 0 0 [ $? -ne 0 ] && return 1 fi @@ -1684,14 +1729,14 @@ function downloadExts() { rm -f "${TMP_PATH}/${4}.zip" STATUS=$(curl -kL -w "%{http_code}" "${PROXY}${3}/releases/download/${TAG}/${4}.zip" -o "${TMP_PATH}/${4}.zip") RET=$? - ) 2>&1 | dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + ) 2>&1 | DIALOG --title "${T}" \ --progressbox "$(TEXT "Downloading ...")" 20 100 if [ ${RET} -ne 0 -o ${STATUS} -ne 200 ]; then if [ ! "${5}" = "0" ]; then - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --infobox "$(printf "$(TEXT "Error downloading new version.\nError: %d:%d")" "${RET}" "${STATUS}")" 0 0 else - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --msgbox "$(printf "$(TEXT "Error downloading new version.\nError: %d:%d")" "${RET}" "${STATUS}")" 0 0 fi return 1 @@ -1702,18 +1747,18 @@ function downloadExts() { # 1 - ext name function updateRR() { T="$(printf "$(TEXT "Update %s")" "${1}")" - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --infobox "$(TEXT "Extracting last version")" 0 0 unzip -oq "${TMP_PATH}/update.zip" -d "${TMP_PATH}/" if [ $? -ne 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --msgbox "$(TEXT "Error extracting update file")" 0 0 return 1 fi # Check checksums (cd /tmp && sha256sum --status -c sha256sum) if [ $? -ne 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --msgbox "$(TEXT "Checksum do not match!")" 0 0 return 1 fi @@ -1722,12 +1767,12 @@ function updateRR() { chmod +x "${TMP_PATH}/update-check.sh" ${TMP_PATH}/update-check.sh if [ $? -ne 0 ]; then - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --msgbox "$(TEXT "The current version does not support upgrading to the latest update.zip. Please remake the bootloader disk!")" 0 0 return 1 fi fi - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --infobox "$(TEXT "Installing new files ...")" 0 0 # Process update-list.yml while read F; do @@ -1744,7 +1789,7 @@ function updateRR() { mv -f "${TMP_PATH}/$(basename "${KEY}")" "${VALUE}" fi done < <(readConfigMap "replace" "${TMP_PATH}/update-list.yml") - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --msgbox "$(printf "$(TEXT "RR updated with success to %s!\nReboot?")" "${TAG}")" 0 0 rebootTo config } @@ -1753,13 +1798,13 @@ function updateRR() { # 2 - silent function updateExts() { T="$(printf "$(TEXT "Update %s")" "${1}")" - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --infobox "$(TEXT "Extracting last version")" 0 0 if [ "${1}" = "addons" ]; then rm -rf "${TMP_PATH}/addons" mkdir -p "${TMP_PATH}/addons" unzip "${TMP_PATH}/addons.zip" -d "${TMP_PATH}/addons" >/dev/null 2>&1 - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --infobox "$(printf "$(TEXT "Installing new %s ...")" "${1}")" 0 0 rm -Rf "${ADDONS_PATH}/"* [ -f "${TMP_PATH}/addons/VERSION" ] && cp -f "${TMP_PATH}/addons/VERSION" "${ADDONS_PATH}/" @@ -1788,10 +1833,10 @@ function updateExts() { fi touch ${PART1_PATH}/.build if [ ! "${2}" = "0" ]; then - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --infobox "$(printf "$(TEXT "%s updated with success!")" "${1}")" 0 0 else - dialog --backtitle "$(backtitle)" --colors --title "${T}" \ + DIALOG --title "${T}" \ --msgbox "$(printf "$(TEXT "%s updated with success!")" "${1}")" 0 0 fi } @@ -1818,7 +1863,7 @@ function updateMenu() { echo "b \"$(TEXT "Pre Release:") \Z4${PRERELEASE}\Zn\"" >>"${TMP_PATH}/menu" echo "e \"$(TEXT "Exit")\"" >>"${TMP_PATH}/menu" - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --menu "$(TEXT "Choose a option")" 0 0 0 --file "${TMP_PATH}/menu" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return @@ -1870,8 +1915,8 @@ function updateMenu() { p) RET=1 while true; do - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Update")" \ - --inputbox "$(TEXT "Please enter a proxy server url")" 0 0 "${PROXY}" \ + DIALOG --title "$(TEXT "Update")" \ + --inputbox "$(TEXT "Please enter a proxy server url")" 0 70 "${PROXY}" \ 2>${TMP_PATH}/resp RET=$? [ ${RET} -ne 0 ] && break @@ -1881,7 +1926,7 @@ function updateMenu() { elif [[ "${PROXYSERVER}" =~ "^(https?|ftp)://[^\s/$.?#].[^\s]*$" ]]; then break else - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Update")" \ + DIALOG --title "$(TEXT "Update")" \ --yesno "$(TEXT "Invalid proxy server url, continue?")" 0 0 RET=$? [ ${RET} -eq 0 ] && break @@ -1892,7 +1937,7 @@ function updateMenu() { u) if ! tty | grep -q "/dev/pts"; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Update")" \ + DIALOG --title "$(TEXT "Update")" \ --msgbox "$(TEXT "This feature is only available when accessed via web/ssh.")" 0 0 return fi @@ -1902,7 +1947,7 @@ function updateMenu() { MSG+="$(TEXT "Upload addons.zip will update Addons.\n")" MSG+="$(TEXT "Upload modules.zip will update Modules.\n")" MSG+="$(TEXT "Upload rp-lkms.zip will update LKMs.\n")" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Update")" \ + DIALOG --title "$(TEXT "Update")" \ --msgbox "${MSG}" 0 0 EXTS=("update.zip" "addons.zip" "modules.zip" "rp-lkms.zip") TMP_UP_PATH="${TMP_PATH}/users" @@ -1919,7 +1964,7 @@ function updateMenu() { done popd if [ -z "${USER_FILE}" ]; then - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Update")" \ + DIALOG --title "$(TEXT "Update")" \ --msgbox "$(TEXT "Not a valid file, please try again!")" 0 0 else rm -f "${TMP_PATH}/${USER_FILE}" @@ -1933,7 +1978,7 @@ function updateMenu() { elif [ "${USER_FILE}" = "rp-lkms.zip" ]; then updateExts "LKMs" "0" else - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Update")" \ + DIALOG --title "$(TEXT "Update")" \ --msgbox "$(TEXT "Not a valid file, please try again!")" 0 0 fi fi @@ -1951,7 +1996,7 @@ function updateMenu() { function notepadMenu() { [ -d "${USER_UP_PATH}" ] || mkdir -p "${USER_UP_PATH}" [ -f "${USER_UP_PATH}/notepad" ] || echo "$(TEXT "This person is very lazy and hasn't written anything.")" >"${USER_UP_PATH}/notepad" - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Edit")" \ + DIALOG --title "$(TEXT "Edit")" \ --editbox "${USER_UP_PATH}/notepad" 0 0 2>"${TMP_PATH}/notepad" [ $? -ne 0 ] && return mv -f "${TMP_PATH}/notepad" "${USER_UP_PATH}/notepad" @@ -1996,7 +2041,7 @@ while true; do echo "t \"$(TEXT "Notepad")\"" >>"${TMP_PATH}/menu" echo "e \"$(TEXT "Exit")\"" >>"${TMP_PATH}/menu" - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --default-item ${NEXT} --menu "$(TEXT "Main menu")" 0 0 0 --file "${TMP_PATH}/menu" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && break @@ -2030,8 +2075,7 @@ while true; do NEXT="d" ;; d) - make 2>&1 | dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Main menu")" --cr-wrap --no-collapse \ - --progressbox "$(TEXT "Making ...")" 20 100 + make NEXT="b" ;; b) @@ -2046,7 +2090,7 @@ while true; do NEXT="m" ;; c) - dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cleaning ...")" \ + DIALOG --title "$(TEXT "Cleaning ...")" \ --prgbox "rm -rfv \"${PART3_PATH}/dl\"" 0 0 NEXT="d" ;; @@ -2061,7 +2105,7 @@ while true; do e) NEXT="e" while true; do - dialog --backtitle "$(backtitle)" --colors \ + DIALOG \ --default-item ${NEXT} --menu "$(TEXT "Choose a action")" 0 0 0 \ p "$(TEXT "Poweroff")" \ r "$(TEXT "Reboot")" \