diff --git a/files/board/arpl/overlayfs/opt/arpl/boot.sh b/files/board/arpl/overlayfs/opt/arpl/boot.sh index 9936fc3a..ddb2dcea 100755 --- a/files/board/arpl/overlayfs/opt/arpl/boot.sh +++ b/files/board/arpl/overlayfs/opt/arpl/boot.sh @@ -26,7 +26,7 @@ TITLE="BOOTING:" [ "${BUS}" = "usb" ] && TITLE+=" [USB flashdisk]" || TITLE+=" [SATA DoM]" printf "\033[1;33m%*s\033[0m\n" $(((${#TITLE} + ${COLUMNS}) / 2)) "${TITLE}" -[ -f "${CACHE_PATH}/logo.png" ] && echo | fbv -acu "${CACHE_PATH}/logo.png" >/dev/null +[ -f "${CACHE_PATH}/logo.png" ] && echo | fbv -acuf "${CACHE_PATH}/logo.png" >/dev/null # Check if DSM zImage changed, patch it if necessary ZIMAGE_HASH="$(readConfigKey "zimage-hash" "${USER_CONFIG_FILE}")" @@ -233,5 +233,5 @@ for T in $(w | grep -v "TTY" | awk -F' ' '{print $2}'); do echo -e "\n\033[1;43m$(TEXT "[This interface will not be operational. Please use the http://find.synology.com/ find DSM and connect.]")\033[0m\n" >"/dev/${T}" 2>/dev/null || true done KERNELWAY="$(readConfigKey "kernelway" "${USER_CONFIG_FILE}")" -[ "${KERNELWAY}" = "kexec" ] && kexec -f -e || poweroff +[ "${KERNELWAY}" = "kexec" ] && kexec -f -d --console-serial -e || poweroff exit 0 diff --git a/files/board/arpl/overlayfs/opt/arpl/lang/arpl.pot b/files/board/arpl/overlayfs/opt/arpl/lang/arpl.pot index 61b2a37f..16ac2d2a 100644 --- a/files/board/arpl/overlayfs/opt/arpl/lang/arpl.pot +++ b/files/board/arpl/overlayfs/opt/arpl/lang/arpl.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-08 15:47+0800\n" +"POT-Creation-Date: 2023-08-09 03:03+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,12 +29,12 @@ msgstr "" msgid "DSM zImage changed" msgstr "" -#: boot.sh:37 boot.sh:49 menu.sh:795 menu.sh:803 menu.sh:829 menu.sh:857 -#: menu.sh:869 menu.sh:893 menu.sh:901 menu.sh:934 menu.sh:947 menu.sh:954 +#: boot.sh:37 boot.sh:49 menu.sh:792 menu.sh:800 menu.sh:826 menu.sh:854 +#: menu.sh:866 menu.sh:890 menu.sh:898 menu.sh:946 menu.sh:959 menu.sh:966 msgid "Error" msgstr "" -#: boot.sh:38 menu.sh:948 +#: boot.sh:38 menu.sh:960 msgid "zImage not patched:\\n" msgstr "" @@ -42,7 +42,7 @@ msgstr "" msgid "DSM Ramdisk changed" msgstr "" -#: boot.sh:50 menu.sh:955 +#: boot.sh:50 menu.sh:967 msgid "Ramdisk not patched:\\n" msgstr "" @@ -227,921 +227,920 @@ msgstr "" msgid "Choose the model" msgstr "" -#: menu.sh:158 +#: menu.sh:155 msgid "Choose a product version" msgstr "" -#: menu.sh:170 menu.sh:175 menu.sh:180 menu.sh:205 menu.sh:220 +#: menu.sh:167 menu.sh:172 menu.sh:177 menu.sh:202 menu.sh:217 msgid "Product Version" msgstr "" -#: menu.sh:171 +#: menu.sh:168 msgid "" "This version does not support UEFI startup, Please select another version or " "switch the startup mode." msgstr "" -#: menu.sh:176 +#: menu.sh:173 msgid "" "This version only support usb startup, Please select another version or " "switch the startup mode." msgstr "" -#: menu.sh:181 -msgid "Get online pat data .." +#: menu.sh:178 +msgid "Get pat data .." msgstr "" -#: menu.sh:199 +#: menu.sh:196 msgid "" -"Failed to get online pat data,\\nPlease manually fill in the URL and md5sum " -"of the corresponding version of pat." +"Failed to get pat data,\\nPlease manually fill in the URL and md5sum of the " +"corresponding version of pat." msgstr "" -#: menu.sh:203 -msgid "" -"Successfully to get online pat data,\\nPlease confirm or modify as needed." +#: menu.sh:200 +msgid "Successfully to get pat data,\\nPlease confirm or modify as needed." msgstr "" -#: menu.sh:221 +#: menu.sh:218 msgid "Reconfiguring Synoinfo, Addons and Modules" msgstr "" -#: menu.sh:265 menu.sh:411 menu.sh:552 menu.sh:693 menu.sh:1670 +#: menu.sh:262 menu.sh:408 menu.sh:549 menu.sh:690 menu.sh:1682 msgid "Choose a option" msgstr "" -#: menu.sh:266 +#: menu.sh:263 msgid "Add an addon" msgstr "" -#: menu.sh:267 +#: menu.sh:264 msgid "Delete addon(s)" msgstr "" -#: menu.sh:268 +#: menu.sh:265 msgid "Show user addons" msgstr "" -#: menu.sh:269 +#: menu.sh:266 msgid "Show all available addons" msgstr "" -#: menu.sh:270 +#: menu.sh:267 msgid "Upload a external addon" msgstr "" -#: menu.sh:271 menu.sh:418 menu.sh:548 menu.sh:688 menu.sh:1004 menu.sh:1678 -#: menu.sh:1846 menu.sh:1914 +#: menu.sh:268 menu.sh:415 menu.sh:545 menu.sh:685 menu.sh:1016 menu.sh:1690 +#: menu.sh:1858 menu.sh:1926 msgid "Exit" msgstr "" -#: menu.sh:283 menu.sh:288 menu.sh:294 menu.sh:306 menu.sh:314 menu.sh:332 -#: menu.sh:346 menu.sh:351 menu.sh:355 menu.sh:369 menu.sh:373 menu.sh:380 -#: menu.sh:383 +#: menu.sh:280 menu.sh:285 menu.sh:291 menu.sh:303 menu.sh:311 menu.sh:329 +#: menu.sh:343 menu.sh:348 menu.sh:352 menu.sh:366 menu.sh:370 menu.sh:377 +#: menu.sh:380 msgid "Addons" msgstr "" -#: menu.sh:284 +#: menu.sh:281 msgid "No available addons to add" msgstr "" -#: menu.sh:289 +#: menu.sh:286 msgid "Select an addon" msgstr "" -#: menu.sh:295 +#: menu.sh:292 msgid "Type a opcional params to addon" msgstr "" -#: menu.sh:307 +#: menu.sh:304 msgid "No user addons to remove" msgstr "" -#: menu.sh:315 +#: menu.sh:312 msgid "Select addon to remove" msgstr "" -#: menu.sh:352 menu.sh:1250 menu.sh:1281 menu.sh:1314 menu.sh:1760 +#: menu.sh:349 menu.sh:1262 menu.sh:1293 menu.sh:1326 menu.sh:1772 msgid "This feature is only available when accessed via web/ssh." msgstr "" -#: menu.sh:356 +#: menu.sh:353 msgid "Please upload the *.addons file." msgstr "" -#: menu.sh:370 menu.sh:523 menu.sh:1787 menu.sh:1801 +#: menu.sh:367 menu.sh:520 menu.sh:1799 menu.sh:1813 msgid "Not a valid file, please try again!" msgstr "" -#: menu.sh:374 +#: menu.sh:371 msgid "The addon already exists. Do you want to overwrite it?" msgstr "" -#: menu.sh:381 +#: menu.sh:378 msgid "Addon '%s' added to loader, Please enable it in 'Add an addon' menu." msgstr "" -#: menu.sh:384 +#: menu.sh:381 msgid "File format not recognized!" msgstr "" -#: menu.sh:399 menu.sh:427 menu.sh:431 menu.sh:448 menu.sh:461 menu.sh:475 -#: menu.sh:481 menu.sh:500 menu.sh:503 menu.sh:518 menu.sh:522 +#: menu.sh:396 menu.sh:424 menu.sh:428 menu.sh:445 menu.sh:458 menu.sh:472 +#: menu.sh:478 menu.sh:497 menu.sh:500 menu.sh:515 menu.sh:519 msgid "Modules" msgstr "" -#: menu.sh:400 +#: menu.sh:397 msgid "Reading modules" msgstr "" -#: menu.sh:412 +#: menu.sh:409 msgid "Show selected modules" msgstr "" -#: menu.sh:413 +#: menu.sh:410 msgid "Select loaded modules" msgstr "" -#: menu.sh:414 +#: menu.sh:411 msgid "Select all modules" msgstr "" -#: menu.sh:415 +#: menu.sh:412 msgid "Deselect all modules" msgstr "" -#: menu.sh:416 +#: menu.sh:413 msgid "Choose modules to include" msgstr "" -#: menu.sh:417 +#: menu.sh:414 msgid "Upload a external module" msgstr "" -#: menu.sh:432 +#: menu.sh:429 msgid "Selecting loaded modules" msgstr "" -#: menu.sh:449 +#: menu.sh:446 msgid "Selecting all modules" msgstr "" -#: menu.sh:462 +#: menu.sh:459 msgid "Deselecting all modules" msgstr "" -#: menu.sh:476 +#: menu.sh:473 msgid "Select modules to include" msgstr "" -#: menu.sh:482 +#: menu.sh:479 msgid "Writing to user config" msgstr "" -#: menu.sh:495 +#: menu.sh:492 msgid "" "This function is experimental and dangerous. If you don't know much, please " "exit.\\n" msgstr "" -#: menu.sh:496 +#: menu.sh:493 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:497 +#: menu.sh:494 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:498 +#: menu.sh:495 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:499 +#: menu.sh:496 msgid "Do you want to continue?" msgstr "" -#: menu.sh:504 +#: menu.sh:501 msgid "Please upload the *.ko file." msgstr "" -#: menu.sh:519 +#: menu.sh:516 msgid "Module '%s' added to %s-%s" msgstr "" -#: menu.sh:540 +#: menu.sh:537 msgid "Add/edit a cmdline item" msgstr "" -#: menu.sh:541 +#: menu.sh:538 msgid "Delete cmdline item(s)" msgstr "" -#: menu.sh:543 +#: menu.sh:540 msgid "Define a serial number" msgstr "" -#: menu.sh:545 +#: menu.sh:542 msgid "Define a custom MAC" msgstr "" -#: menu.sh:546 +#: menu.sh:543 msgid "Show user added cmdline" msgstr "" -#: menu.sh:547 +#: menu.sh:544 msgid "Show model inherent cmdline" msgstr "" -#: menu.sh:557 menu.sh:563 menu.sh:573 menu.sh:581 menu.sh:594 menu.sh:606 -#: menu.sh:623 menu.sh:633 menu.sh:643 menu.sh:646 menu.sh:649 menu.sh:660 -#: menu.sh:668 +#: menu.sh:554 menu.sh:560 menu.sh:570 menu.sh:578 menu.sh:591 menu.sh:603 +#: menu.sh:620 menu.sh:630 menu.sh:640 menu.sh:643 menu.sh:646 menu.sh:657 +#: menu.sh:665 msgid "Cmdline" msgstr "" -#: menu.sh:558 +#: menu.sh:555 msgid "Type a name of cmdline" msgstr "" -#: menu.sh:564 +#: menu.sh:561 msgid "Type a value of '%s' cmdline" msgstr "" -#: menu.sh:574 +#: menu.sh:571 msgid "No user cmdline to remove" msgstr "" -#: menu.sh:582 +#: menu.sh:579 msgid "Select cmdline to remove" msgstr "" -#: menu.sh:595 +#: menu.sh:592 msgid "Please enter a serial number " msgstr "" -#: menu.sh:607 +#: menu.sh:604 msgid "Invalid serial, continue?" msgstr "" -#: menu.sh:624 +#: menu.sh:621 msgid "Type a custom MAC address of %s" msgstr "" -#: menu.sh:634 +#: menu.sh:631 msgid "Invalid MAC" msgstr "" -#: menu.sh:644 +#: menu.sh:641 msgid "Changing MAC" msgstr "" -#: menu.sh:647 +#: menu.sh:644 msgid "Renewing IP" msgstr "" -#: menu.sh:650 +#: menu.sh:647 msgid "Continue to custom MAC?" msgstr "" -#: menu.sh:685 +#: menu.sh:682 msgid "Add/edit a synoinfo item" msgstr "" -#: menu.sh:686 +#: menu.sh:683 msgid "Delete synoinfo item(s)" msgstr "" -#: menu.sh:687 +#: menu.sh:684 msgid "Show synoinfo entries" msgstr "" -#: menu.sh:698 menu.sh:704 menu.sh:715 menu.sh:723 menu.sh:740 +#: menu.sh:695 menu.sh:701 menu.sh:712 menu.sh:720 menu.sh:737 msgid "Synoinfo" msgstr "" -#: menu.sh:699 +#: menu.sh:696 msgid "Type a name of synoinfo entry" msgstr "" -#: menu.sh:705 +#: menu.sh:702 msgid "Type a value of '%s' synoinfo entry" msgstr "" -#: menu.sh:716 +#: menu.sh:713 msgid "No synoinfo entries to remove" msgstr "" -#: menu.sh:724 +#: menu.sh:721 msgid "Select synoinfo entry to remove" msgstr "" -#: menu.sh:763 +#: menu.sh:760 msgid "%s cached." msgstr "" -#: menu.sh:767 +#: menu.sh:764 msgid "Cleaning cache" msgstr "" -#: menu.sh:781 +#: menu.sh:778 msgid "" "Based on the current network situation, switch to %s mirror to downloading." msgstr "" -#: menu.sh:785 +#: menu.sh:782 msgid "Downloading %s" msgstr "" -#: menu.sh:796 menu.sh:858 +#: menu.sh:793 menu.sh:855 msgid "Check internet or cache disk space" msgstr "" -#: menu.sh:801 +#: menu.sh:798 msgid "Checking hash of %s: " msgstr "" -#: menu.sh:804 +#: menu.sh:801 msgid "md5 Hash of pat not match, try again!" msgstr "" -#: menu.sh:808 menu.sh:910 menu.sh:920 +#: menu.sh:805 menu.sh:907 menu.sh:917 msgid "OK" msgstr "" -#: menu.sh:812 +#: menu.sh:809 msgid "Disassembling %s: " msgstr "" -#: menu.sh:817 +#: menu.sh:814 msgid "Uncompressed tar" msgstr "" -#: menu.sh:821 +#: menu.sh:818 msgid "Compressed tar" msgstr "" -#: menu.sh:825 +#: menu.sh:822 msgid "Encrypted" msgstr "" -#: menu.sh:830 +#: menu.sh:827 msgid "" "Could not determine if pat file is encrypted or not, maybe corrupted, try " "again!" msgstr "" -#: menu.sh:840 +#: menu.sh:837 msgid "Extractor cached." msgstr "" -#: menu.sh:847 +#: menu.sh:844 msgid "Downloading old pat to extract synology .pat extractor..." msgstr "" -#: menu.sh:887 menu.sh:890 +#: menu.sh:884 menu.sh:887 msgid "Extracting..." msgstr "" -#: menu.sh:902 +#: menu.sh:899 msgid "pat Invalid, try again!" msgstr "" -#: menu.sh:905 +#: menu.sh:902 msgid "Setting hash: " msgstr "" -#: menu.sh:912 +#: menu.sh:909 msgid "Copying files: " msgstr "" -#: menu.sh:935 +#: menu.sh:947 msgid "Addon %s not found!" msgstr "" -#: menu.sh:961 menu.sh:1897 +#: menu.sh:973 menu.sh:1909 msgid "Cleaning" msgstr "" -#: menu.sh:963 +#: menu.sh:975 msgid "Ready!" msgstr "" -#: menu.sh:976 +#: menu.sh:988 msgid "Switch LKM version:" msgstr "" -#: menu.sh:979 +#: menu.sh:991 msgid "Switch direct boot:" msgstr "" -#: menu.sh:981 -msgid "boot IPs wait time:" -msgstr "" - -#: menu.sh:982 -msgid "Switch way of switching kernel:" -msgstr "" - -#: menu.sh:985 -msgid "Switch 'not set MACs':" -msgstr "" - -#: menu.sh:986 -msgid "Edit user config file manually" -msgstr "" - -#: menu.sh:987 -msgid "Try to recovery a DSM installed system" -msgstr "" - -#: menu.sh:988 -msgid "Show SATA(s) # ports and drives" -msgstr "" - -#: menu.sh:990 -msgid "show/modify the current pat data" -msgstr "" - -#: menu.sh:992 -msgid "Allow downgrade installation" -msgstr "" - #: menu.sh:993 -msgid "Format disk(s) # Without loader disk" +msgid "Time of timeout of wait ip in boot:" msgstr "" #: menu.sh:994 -msgid "Reset syno system password" -msgstr "" - -#: menu.sh:995 -msgid "Persistence of arpl modifications" +msgid "kernel switching method:" msgstr "" #: menu.sh:997 -msgid "Custom dts file # Need rebuild" +msgid "Switch 'Do not set MACs':" +msgstr "" + +#: menu.sh:998 +msgid "Edit user config file manually" +msgstr "" + +#: menu.sh:999 +msgid "Try to recovery a DSM installed system" msgstr "" #: menu.sh:1000 +msgid "Show SATA(s) # ports and drives" +msgstr "" + +#: menu.sh:1002 +msgid "show/modify the current pat data" +msgstr "" + +#: menu.sh:1004 +msgid "Allow downgrade installation" +msgstr "" + +#: menu.sh:1005 +msgid "Format disk(s) # Without loader disk" +msgstr "" + +#: menu.sh:1006 +msgid "Reset DSM system password" +msgstr "" + +#: menu.sh:1007 +msgid "Save modifications of '/opt/arpl'" +msgstr "" + +#: menu.sh:1009 +msgid "Custom dts file # Need rebuild" +msgstr "" + +#: menu.sh:1012 msgid "Backup bootloader disk # test" msgstr "" -#: menu.sh:1001 +#: menu.sh:1013 msgid "Restore bootloader disk # test" msgstr "" -#: menu.sh:1003 +#: menu.sh:1015 msgid "Install development tools" msgstr "" -#: menu.sh:1006 menu.sh:1024 menu.sh:1089 menu.sh:1096 menu.sh:1114 -#: menu.sh:1127 menu.sh:1130 menu.sh:1145 menu.sh:1146 menu.sh:1151 -#: menu.sh:1155 menu.sh:1166 menu.sh:1168 menu.sh:1185 menu.sh:1190 -#: menu.sh:1198 menu.sh:1204 menu.sh:1217 menu.sh:1220 menu.sh:1226 -#: menu.sh:1229 menu.sh:1244 menu.sh:1249 menu.sh:1253 menu.sh:1268 -#: menu.sh:1273 menu.sh:1280 menu.sh:1284 menu.sh:1287 menu.sh:1292 -#: menu.sh:1302 menu.sh:1307 menu.sh:1313 menu.sh:1317 menu.sh:1334 -#: menu.sh:1337 menu.sh:1343 menu.sh:1351 menu.sh:1359 menu.sh:1368 -#: menu.sh:1370 +#: menu.sh:1018 menu.sh:1036 menu.sh:1101 menu.sh:1108 menu.sh:1126 +#: menu.sh:1139 menu.sh:1142 menu.sh:1157 menu.sh:1158 menu.sh:1163 +#: menu.sh:1167 menu.sh:1178 menu.sh:1180 menu.sh:1197 menu.sh:1202 +#: menu.sh:1210 menu.sh:1216 menu.sh:1229 menu.sh:1232 menu.sh:1238 +#: menu.sh:1241 menu.sh:1256 menu.sh:1261 menu.sh:1265 menu.sh:1280 +#: menu.sh:1285 menu.sh:1292 menu.sh:1296 menu.sh:1299 menu.sh:1304 +#: menu.sh:1314 menu.sh:1319 menu.sh:1325 menu.sh:1329 menu.sh:1346 +#: menu.sh:1349 menu.sh:1355 menu.sh:1363 menu.sh:1371 menu.sh:1380 +#: menu.sh:1382 msgid "Advanced" msgstr "" -#: menu.sh:1007 menu.sh:1849 +#: menu.sh:1019 menu.sh:1861 msgid "Choose the option" msgstr "" -#: menu.sh:1025 +#: menu.sh:1037 msgid "Choose a waiting time(seconds)" msgstr "" -#: menu.sh:1085 +#: menu.sh:1097 msgid "\\nTotal of ports: %s\\n" msgstr "" -#: menu.sh:1086 +#: menu.sh:1098 msgid "" "\\nPorts with color \\Z1red\\Zn as DUMMY, color \\Z2\\Zbgreen\\Zn has drive " "connected." msgstr "" -#: menu.sh:1087 +#: menu.sh:1099 msgid "\\nRecommended value:" msgstr "" -#: menu.sh:1088 +#: menu.sh:1100 msgid "\\nDiskIdxMap:" msgstr "" -#: menu.sh:1095 +#: menu.sh:1107 msgid "pat: (editable)" msgstr "" -#: menu.sh:1111 +#: menu.sh:1123 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:1112 +#: menu.sh:1124 msgid "Therefore, please insert all disks before continuing.\\n" msgstr "" -#: menu.sh:1113 menu.sh:1152 +#: menu.sh:1125 menu.sh:1164 msgid "" "Warning:\\nThis operation is irreversible. Please backup important data. Do " "you want to continue?" msgstr "" -#: menu.sh:1128 +#: menu.sh:1140 msgid "Removing ..." msgstr "" -#: menu.sh:1129 +#: menu.sh:1141 msgid "Remove VERSION file for all disks completed." msgstr "" -#: menu.sh:1156 +#: menu.sh:1168 msgid "" "Warning:\\nThe current hds is in raid, do you still want to format them?" msgstr "" -#: menu.sh:1167 +#: menu.sh:1179 msgid "Formatting ..." msgstr "" -#: menu.sh:1169 +#: menu.sh:1181 msgid "Formatting is complete." msgstr "" -#: menu.sh:1186 +#: menu.sh:1198 msgid "The installed Syno system not found in the currently inserted disks!" msgstr "" -#: menu.sh:1191 +#: menu.sh:1203 msgid "Choose a user name" msgstr "" -#: menu.sh:1199 +#: menu.sh:1211 msgid "Type a new password for user '%s'" msgstr "" -#: menu.sh:1205 +#: menu.sh:1217 msgid "Invalid password" msgstr "" -#: menu.sh:1218 +#: menu.sh:1230 msgid "Resetting ..." msgstr "" -#: menu.sh:1221 +#: menu.sh:1233 msgid "Password reset completed." msgstr "" -#: menu.sh:1227 menu.sh:1285 menu.sh:1338 +#: menu.sh:1239 menu.sh:1297 menu.sh:1350 msgid "" "Warning:\\nDo not terminate midway, otherwise it may cause damage to the " "arpl. Do you want to continue?" msgstr "" -#: menu.sh:1230 -msgid "Persisting ..." +#: menu.sh:1242 +msgid "Saving ..." msgstr "" -#: menu.sh:1245 -msgid "Persisting is complete." +#: menu.sh:1257 +msgid "Save is complete." msgstr "" -#: menu.sh:1254 +#: menu.sh:1266 msgid "" "Currently, only dts format files are supported. Please prepare and click to " "confirm uploading.\\n(saved in /mnt/p3/users/)" msgstr "" -#: menu.sh:1269 +#: menu.sh:1281 msgid "Not a valid dts file, please try again!" msgstr "" -#: menu.sh:1274 +#: menu.sh:1286 msgid "A valid dts file, Automatically import at compile time." msgstr "" -#: menu.sh:1288 +#: menu.sh:1300 msgid "Backuping..." msgstr "" -#: menu.sh:1293 +#: menu.sh:1305 msgid "" "Failed to generate backup. There may be insufficient memory. Please clear " "the cache and try again!" msgstr "" -#: menu.sh:1300 +#: menu.sh:1312 msgid "Click on the address above to download." msgstr "" -#: menu.sh:1301 +#: menu.sh:1313 msgid "" "Please confirm the completion of the download before closing this window." msgstr "" -#: menu.sh:1308 +#: menu.sh:1320 msgid "backup is complete." msgstr "" -#: menu.sh:1318 +#: menu.sh:1330 msgid "" "Please upload the backup file.\\nCurrently, zip(github) and img.gz(backup) " "compressed file formats are supported." msgstr "" -#: menu.sh:1335 +#: menu.sh:1347 msgid "Not a valid .zip/.img.gz file, please try again!" msgstr "" -#: menu.sh:1344 +#: menu.sh:1356 msgid "Writing..." msgstr "" -#: menu.sh:1352 +#: menu.sh:1364 msgid "Restore bootloader disk with success to %s!\\nReboot?" msgstr "" -#: menu.sh:1360 +#: menu.sh:1372 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:1369 +#: menu.sh:1381 msgid "opkg installing ..." msgstr "" -#: menu.sh:1371 +#: menu.sh:1383 msgid "" "opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." "bashrc'" msgstr "" -#: menu.sh:1381 menu.sh:1418 menu.sh:1425 +#: menu.sh:1393 menu.sh:1430 menu.sh:1437 msgid "Try recovery DSM" msgstr "" -#: menu.sh:1382 +#: menu.sh:1394 msgid "Trying to recovery a DSM installed system" msgstr "" -#: menu.sh:1408 +#: menu.sh:1420 msgid "Found a installation:\\nModel: %s\\nProductversion: %s" msgstr "" -#: menu.sh:1412 +#: menu.sh:1424 msgid "\\nSerial: %s" msgstr "" -#: menu.sh:1426 +#: menu.sh:1438 msgid "Unfortunately I couldn't mount the DSM partition!" msgstr "" -#: menu.sh:1434 menu.sh:1440 +#: menu.sh:1446 menu.sh:1452 msgid "Edit with caution" msgstr "" -#: menu.sh:1462 +#: menu.sh:1474 msgid "Alert" msgstr "" -#: menu.sh:1463 +#: menu.sh:1475 msgid "Config changed, would you like to rebuild the loader?" msgstr "" -#: menu.sh:1475 menu.sh:1840 +#: menu.sh:1487 menu.sh:1852 msgid "Choose a language" msgstr "" -#: menu.sh:1489 +#: menu.sh:1501 msgid "Choose a layout" msgstr "" -#: menu.sh:1501 +#: menu.sh:1513 msgid "Choice a keymap" msgstr "" -#: menu.sh:1520 menu.sh:1569 menu.sh:1620 menu.sh:1683 menu.sh:1687 -#: menu.sh:1691 menu.sh:1695 menu.sh:1703 menu.sh:1711 menu.sh:1719 -#: menu.sh:1727 +#: menu.sh:1532 menu.sh:1581 menu.sh:1632 menu.sh:1695 menu.sh:1699 +#: menu.sh:1703 menu.sh:1707 menu.sh:1715 menu.sh:1723 menu.sh:1731 +#: menu.sh:1739 msgid "Update %s" msgstr "" -#: menu.sh:1523 +#: menu.sh:1535 msgid "Checking last version" msgstr "" -#: menu.sh:1532 menu.sh:1535 +#: menu.sh:1544 menu.sh:1547 msgid "Error checking new version" msgstr "" -#: menu.sh:1542 +#: menu.sh:1554 msgid "No new version." msgstr "" -#: menu.sh:1546 +#: menu.sh:1558 msgid "No new version. Actual version is %s\\nForce update?" msgstr "" -#: menu.sh:1551 +#: menu.sh:1563 msgid "Downloading last version" msgstr "" -#: menu.sh:1557 menu.sh:1560 +#: menu.sh:1569 menu.sh:1572 msgid "Error downloading new version" msgstr "" -#: menu.sh:1571 menu.sh:1622 +#: menu.sh:1583 menu.sh:1634 msgid "Extracting last version" msgstr "" -#: menu.sh:1575 +#: menu.sh:1587 msgid "Error extracting update file" msgstr "" -#: menu.sh:1582 +#: menu.sh:1594 msgid "Checksum do not match!" msgstr "" -#: menu.sh:1591 +#: menu.sh:1603 msgid "" "The current version does not support upgrading to the latest update.zip. " "Please remake the bootloader disk!" msgstr "" -#: menu.sh:1596 +#: menu.sh:1608 msgid "Installing new files" msgstr "" -#: menu.sh:1613 +#: menu.sh:1625 msgid "Arpl updated with success to %s!\\nReboot?" msgstr "" -#: menu.sh:1628 +#: menu.sh:1640 msgid "Installing new %s" msgstr "" -#: menu.sh:1657 menu.sh:1660 +#: menu.sh:1669 menu.sh:1672 msgid "%s updated with success!" msgstr "" -#: menu.sh:1671 +#: menu.sh:1683 msgid "Update all" msgstr "" -#: menu.sh:1672 +#: menu.sh:1684 msgid "Update arpl" msgstr "" -#: menu.sh:1673 +#: menu.sh:1685 msgid "Update addons" msgstr "" -#: menu.sh:1674 +#: menu.sh:1686 msgid "Update modules" msgstr "" -#: menu.sh:1675 +#: menu.sh:1687 msgid "Update LKMs" msgstr "" -#: menu.sh:1676 +#: menu.sh:1688 msgid "Set proxy server" msgstr "" -#: menu.sh:1677 +#: menu.sh:1689 msgid "Local upload" msgstr "" -#: menu.sh:1683 menu.sh:1711 +#: menu.sh:1695 menu.sh:1723 msgid "addons" msgstr "" -#: menu.sh:1687 menu.sh:1719 +#: menu.sh:1699 menu.sh:1731 msgid "modules" msgstr "" -#: menu.sh:1691 menu.sh:1727 +#: menu.sh:1703 menu.sh:1739 msgid "LKMs" msgstr "" -#: menu.sh:1695 menu.sh:1703 +#: menu.sh:1707 menu.sh:1715 msgid "arpl" msgstr "" -#: menu.sh:1737 menu.sh:1748 menu.sh:1759 menu.sh:1769 menu.sh:1786 -#: menu.sh:1800 +#: menu.sh:1749 menu.sh:1760 menu.sh:1771 menu.sh:1781 menu.sh:1798 +#: menu.sh:1812 msgid "Update" msgstr "" -#: menu.sh:1738 +#: menu.sh:1750 msgid "Please enter a proxy server url" msgstr "" -#: menu.sh:1749 +#: menu.sh:1761 msgid "Invalid proxy server url, continue?" msgstr "" -#: menu.sh:1764 +#: menu.sh:1776 msgid "" "Please keep the attachment name consistent with the attachment name on " "Github.\\n" msgstr "" -#: menu.sh:1765 +#: menu.sh:1777 msgid "Upload update.zip will update arpl.\\n" msgstr "" -#: menu.sh:1766 +#: menu.sh:1778 msgid "Upload addons.zip will update Addons.\\n" msgstr "" -#: menu.sh:1767 +#: menu.sh:1779 msgid "Upload modules.zip will update Modules.\\n" msgstr "" -#: menu.sh:1768 +#: menu.sh:1780 msgid "Upload rp-lkms.zip will update LKMs.\\n" msgstr "" -#: menu.sh:1821 +#: menu.sh:1833 msgid "Choose a model" msgstr "" -#: menu.sh:1823 +#: menu.sh:1835 msgid "Choose a version" msgstr "" -#: menu.sh:1825 +#: menu.sh:1837 msgid "Addons menu" msgstr "" -#: menu.sh:1826 +#: menu.sh:1838 msgid "Modules menu" msgstr "" -#: menu.sh:1827 +#: menu.sh:1839 msgid "Cmdline menu" msgstr "" -#: menu.sh:1828 +#: menu.sh:1840 msgid "Synoinfo menu" msgstr "" -#: menu.sh:1831 +#: menu.sh:1843 msgid "Advanced menu" msgstr "" -#: menu.sh:1834 +#: menu.sh:1846 msgid "Build the loader" msgstr "" -#: menu.sh:1838 +#: menu.sh:1850 msgid "Boot the loader" msgstr "" -#: menu.sh:1841 +#: menu.sh:1853 msgid "Choose a keymap" msgstr "" -#: menu.sh:1843 +#: menu.sh:1855 msgid "Clean disk cache" msgstr "" -#: menu.sh:1845 +#: menu.sh:1857 msgid "Update menu" msgstr "" -#: menu.sh:1909 +#: menu.sh:1921 msgid "Choose a action" msgstr "" -#: menu.sh:1910 +#: menu.sh:1922 msgid "Poweroff" msgstr "" -#: menu.sh:1911 +#: menu.sh:1923 msgid "Reboot" msgstr "" -#: menu.sh:1912 +#: menu.sh:1924 msgid "Reboot to arpl" msgstr "" -#: menu.sh:1913 +#: menu.sh:1925 msgid "Back to shell" msgstr "" -#: menu.sh:1939 +#: menu.sh:1951 msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu" msgstr "" diff --git a/files/board/arpl/overlayfs/opt/arpl/lang/zh_CN.mo b/files/board/arpl/overlayfs/opt/arpl/lang/zh_CN.mo index 351745d9..c1191b4c 100644 Binary files a/files/board/arpl/overlayfs/opt/arpl/lang/zh_CN.mo and b/files/board/arpl/overlayfs/opt/arpl/lang/zh_CN.mo differ diff --git a/files/board/arpl/overlayfs/opt/arpl/lang/zh_CN.po b/files/board/arpl/overlayfs/opt/arpl/lang/zh_CN.po index 99f14b08..f2efb7cc 100644 --- a/files/board/arpl/overlayfs/opt/arpl/lang/zh_CN.po +++ b/files/board/arpl/overlayfs/opt/arpl/lang/zh_CN.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: arpl-i18n\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-08 15:47+0800\n" -"PO-Revision-Date: 2023-08-08 15:47+0800\n" +"POT-Creation-Date: 2023-08-09 01:53+0800\n" +"PO-Revision-Date: 2023-08-09 01:53+0800\n" "Last-Translator: ing \n" "Language-Team: Chinese (simplified) \n" "Language: zh_CN\n" @@ -28,12 +28,12 @@ msgstr "" msgid "DSM zImage changed" msgstr "DSM zImage 已更改" -#: boot.sh:37 boot.sh:49 menu.sh:795 menu.sh:803 menu.sh:829 menu.sh:857 -#: menu.sh:869 menu.sh:893 menu.sh:901 menu.sh:934 menu.sh:947 menu.sh:954 +#: boot.sh:37 boot.sh:49 menu.sh:792 menu.sh:800 menu.sh:826 menu.sh:854 +#: menu.sh:866 menu.sh:890 menu.sh:898 menu.sh:946 menu.sh:959 menu.sh:966 msgid "Error" msgstr "错误" -#: boot.sh:38 menu.sh:948 +#: boot.sh:38 menu.sh:960 msgid "zImage not patched:\\n" msgstr "zImage打补丁失败:\\n" @@ -41,7 +41,7 @@ msgstr "zImage打补丁失败:\\n" msgid "DSM Ramdisk changed" msgstr "DSM Ramdisk 已更改" -#: boot.sh:50 menu.sh:955 +#: boot.sh:50 menu.sh:967 msgid "Ramdisk not patched:\\n" msgstr "Ramdisk打补丁失败:\\n" @@ -226,921 +226,920 @@ msgstr "显示测试型号" msgid "Choose the model" msgstr "选择型号" -#: menu.sh:158 +#: menu.sh:155 msgid "Choose a product version" msgstr "选择版本" -#: menu.sh:170 menu.sh:175 menu.sh:180 menu.sh:205 menu.sh:220 +#: menu.sh:167 menu.sh:172 menu.sh:177 menu.sh:202 menu.sh:217 msgid "Product Version" msgstr "版本" -#: menu.sh:171 +#: menu.sh:168 msgid "" "This version does not support UEFI startup, Please select another version or " "switch the startup mode." msgstr "该版本不支持UEFI启动, 请选择其他版本或者切换启动模式." -#: menu.sh:176 +#: menu.sh:173 msgid "" "This version only support usb startup, Please select another version or " "switch the startup mode." msgstr "该版本仅支持 usb 启动, 请选择其他版本或者切换启动模式." -#: menu.sh:181 -msgid "Get online pat data .." -msgstr "获取线上pat数据 .." +#: menu.sh:178 +msgid "Get pat data .." +msgstr "获取pat数据 .." -#: menu.sh:199 +#: menu.sh:196 msgid "" -"Failed to get online pat data,\\nPlease manually fill in the URL and md5sum " -"of the corresponding version of pat." +"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:203 -msgid "" -"Successfully to get online pat data,\\nPlease confirm or modify as needed." +#: menu.sh:200 +msgid "Successfully to get pat data,\\nPlease confirm or modify as needed." msgstr "获取pat数据成功,\\n请确认或者按需修改." -#: menu.sh:221 +#: menu.sh:218 msgid "Reconfiguring Synoinfo, Addons and Modules" msgstr "重新配置 Syninfo, 插件和模块" -#: menu.sh:265 menu.sh:411 menu.sh:552 menu.sh:693 menu.sh:1670 +#: menu.sh:262 menu.sh:408 menu.sh:549 menu.sh:690 menu.sh:1682 msgid "Choose a option" msgstr "设置" -#: menu.sh:266 +#: menu.sh:263 msgid "Add an addon" msgstr "添加插件" -#: menu.sh:267 +#: menu.sh:264 msgid "Delete addon(s)" msgstr "删除插件(s)" -#: menu.sh:268 +#: menu.sh:265 msgid "Show user addons" msgstr "显示用户插件" -#: menu.sh:269 +#: menu.sh:266 msgid "Show all available addons" msgstr "显示所有可用插件" -#: menu.sh:270 +#: menu.sh:267 msgid "Upload a external addon" msgstr "上传外部插件" -#: menu.sh:271 menu.sh:418 menu.sh:548 menu.sh:688 menu.sh:1004 menu.sh:1678 -#: menu.sh:1846 menu.sh:1914 +#: menu.sh:268 menu.sh:415 menu.sh:545 menu.sh:685 menu.sh:1016 menu.sh:1690 +#: menu.sh:1858 menu.sh:1926 msgid "Exit" msgstr "退出" -#: menu.sh:283 menu.sh:288 menu.sh:294 menu.sh:306 menu.sh:314 menu.sh:332 -#: menu.sh:346 menu.sh:351 menu.sh:355 menu.sh:369 menu.sh:373 menu.sh:380 -#: menu.sh:383 +#: menu.sh:280 menu.sh:285 menu.sh:291 menu.sh:303 menu.sh:311 menu.sh:329 +#: menu.sh:343 menu.sh:348 menu.sh:352 menu.sh:366 menu.sh:370 menu.sh:377 +#: menu.sh:380 msgid "Addons" msgstr "插件" -#: menu.sh:284 +#: menu.sh:281 msgid "No available addons to add" msgstr "没有可用的插件可添加" -#: menu.sh:289 +#: menu.sh:286 msgid "Select an addon" msgstr "选择插件" -#: menu.sh:295 +#: menu.sh:292 msgid "Type a opcional params to addon" msgstr "输入插件的加载参数" -#: menu.sh:307 +#: menu.sh:304 msgid "No user addons to remove" msgstr "没有要删除的用户插件" -#: menu.sh:315 +#: menu.sh:312 msgid "Select addon to remove" msgstr "选择要删除的插件" -#: menu.sh:352 menu.sh:1250 menu.sh:1281 menu.sh:1314 menu.sh:1760 +#: menu.sh:349 menu.sh:1262 menu.sh:1293 menu.sh:1326 menu.sh:1772 msgid "This feature is only available when accessed via web/ssh." msgstr "此功能仅通过web/ssh访问时可用." -#: menu.sh:356 +#: menu.sh:353 msgid "Please upload the *.addons file." msgstr "请上传 *.addons 文件." -#: menu.sh:370 menu.sh:523 menu.sh:1787 menu.sh:1801 +#: menu.sh:367 menu.sh:520 menu.sh:1799 menu.sh:1813 msgid "Not a valid file, please try again!" msgstr "不是有效的文件, 请重试!" -#: menu.sh:374 +#: menu.sh:371 msgid "The addon already exists. Do you want to overwrite it?" msgstr "该插件已存在, 是否覆盖?" -#: menu.sh:381 +#: menu.sh:378 msgid "Addon '%s' added to loader, Please enable it in 'Add an addon' menu." msgstr "插件 '%s' 已添加到引导中, 请在'添加插件' 菜单中开启." -#: menu.sh:384 +#: menu.sh:381 msgid "File format not recognized!" msgstr "文件格式无法识别!" -#: menu.sh:399 menu.sh:427 menu.sh:431 menu.sh:448 menu.sh:461 menu.sh:475 -#: menu.sh:481 menu.sh:500 menu.sh:503 menu.sh:518 menu.sh:522 +#: menu.sh:396 menu.sh:424 menu.sh:428 menu.sh:445 menu.sh:458 menu.sh:472 +#: menu.sh:478 menu.sh:497 menu.sh:500 menu.sh:515 menu.sh:519 msgid "Modules" msgstr "模块" -#: menu.sh:400 +#: menu.sh:397 msgid "Reading modules" msgstr "读取模块中" -#: menu.sh:412 +#: menu.sh:409 msgid "Show selected modules" msgstr "显示已加载的模块" -#: menu.sh:413 +#: menu.sh:410 msgid "Select loaded modules" msgstr "选择已识别的模块" -#: menu.sh:414 +#: menu.sh:411 msgid "Select all modules" msgstr "选择所有模块" -#: menu.sh:415 +#: menu.sh:412 msgid "Deselect all modules" msgstr "取消所有模块" -#: menu.sh:416 +#: menu.sh:413 msgid "Choose modules to include" msgstr "选择要加载的模块" -#: menu.sh:417 +#: menu.sh:414 msgid "Upload a external module" msgstr "上传一个外部模块" -#: menu.sh:432 +#: menu.sh:429 msgid "Selecting loaded modules" msgstr "选择已识别的模块" -#: menu.sh:449 +#: menu.sh:446 msgid "Selecting all modules" msgstr "全选所有模块" -#: menu.sh:462 +#: menu.sh:459 msgid "Deselecting all modules" msgstr "取消所有模块" -#: menu.sh:476 +#: menu.sh:473 msgid "Select modules to include" msgstr "选择要加载的插件" -#: menu.sh:482 +#: menu.sh:479 msgid "Writing to user config" msgstr "写入用户配置" -#: menu.sh:495 +#: menu.sh:492 msgid "" "This function is experimental and dangerous. If you don't know much, please " "exit.\\n" msgstr "该功能是实验性的且危险的, 如果你不了解, 请退出.\\n" -#: menu.sh:496 +#: menu.sh:493 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:497 +#: menu.sh:494 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 "该程序不会判断导入的驱动模块的可用性, 甚至不会做类型判断, 因从请你再三确认是否正确.\\n" -#: menu.sh:498 +#: menu.sh:495 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 "如果您想删除它, 请转到 \"更新\"->\"更新模块\" 强制更新模块, 所有导入都将被重置.\\n" -#: menu.sh:499 +#: menu.sh:496 msgid "Do you want to continue?" msgstr "是否继续?" -#: menu.sh:504 +#: menu.sh:501 msgid "Please upload the *.ko file." msgstr "请上传 *.ko 文件." -#: menu.sh:519 +#: menu.sh:516 msgid "Module '%s' added to %s-%s" msgstr "模块 '%s' 已添加到 %s-%s" -#: menu.sh:540 +#: menu.sh:537 msgid "Add/edit a cmdline item" msgstr "添加/编辑cmdline参数" -#: menu.sh:541 +#: menu.sh:538 msgid "Delete cmdline item(s)" msgstr "删除cmdline参数(s)" -#: menu.sh:543 +#: menu.sh:540 msgid "Define a serial number" msgstr "自定义SN" -#: menu.sh:545 +#: menu.sh:542 msgid "Define a custom MAC" msgstr "自定义MAC" -#: menu.sh:546 +#: menu.sh:543 msgid "Show user added cmdline" msgstr "显示用户添加的cmdline参数" -#: menu.sh:547 +#: menu.sh:544 msgid "Show model inherent cmdline" msgstr "显示型号默认的cmdline参数" -#: menu.sh:557 menu.sh:563 menu.sh:573 menu.sh:581 menu.sh:594 menu.sh:606 -#: menu.sh:623 menu.sh:633 menu.sh:643 menu.sh:646 menu.sh:649 menu.sh:660 -#: menu.sh:668 +#: menu.sh:554 menu.sh:560 menu.sh:570 menu.sh:578 menu.sh:591 menu.sh:603 +#: menu.sh:620 menu.sh:630 menu.sh:640 menu.sh:643 menu.sh:646 menu.sh:657 +#: menu.sh:665 msgid "Cmdline" msgstr "Cmdline" -#: menu.sh:558 +#: menu.sh:555 msgid "Type a name of cmdline" msgstr "输入参数的名称" -#: menu.sh:564 +#: menu.sh:561 msgid "Type a value of '%s' cmdline" msgstr "输入 '%s' 参数的值" -#: menu.sh:574 +#: menu.sh:571 msgid "No user cmdline to remove" msgstr "没有用户参数被删除" -#: menu.sh:582 +#: menu.sh:579 msgid "Select cmdline to remove" msgstr "选择要删除的参数" -#: menu.sh:595 +#: menu.sh:592 msgid "Please enter a serial number " msgstr "请输入SN " -#: menu.sh:607 +#: menu.sh:604 msgid "Invalid serial, continue?" msgstr "SN无效, 是否继续?" -#: menu.sh:624 +#: menu.sh:621 msgid "Type a custom MAC address of %s" msgstr "输入 %s 的自定义MAC地址" -#: menu.sh:634 +#: menu.sh:631 msgid "Invalid MAC" msgstr "无效的MAC" -#: menu.sh:644 +#: menu.sh:641 msgid "Changing MAC" msgstr "修改MAC" -#: menu.sh:647 +#: menu.sh:644 msgid "Renewing IP" msgstr "刷新IP" -#: menu.sh:650 +#: menu.sh:647 msgid "Continue to custom MAC?" msgstr "继续自定义MAC?" -#: menu.sh:685 +#: menu.sh:682 msgid "Add/edit a synoinfo item" msgstr "添加/编辑Synoinfo参数" -#: menu.sh:686 +#: menu.sh:683 msgid "Delete synoinfo item(s)" msgstr "删除Synoinfo参数(s)" -#: menu.sh:687 +#: menu.sh:684 msgid "Show synoinfo entries" msgstr "显示Synoinfo参数" -#: menu.sh:698 menu.sh:704 menu.sh:715 menu.sh:723 menu.sh:740 +#: menu.sh:695 menu.sh:701 menu.sh:712 menu.sh:720 menu.sh:737 msgid "Synoinfo" msgstr "Synoinfo" -#: menu.sh:699 +#: menu.sh:696 msgid "Type a name of synoinfo entry" msgstr "输入参数的名称" -#: menu.sh:705 +#: menu.sh:702 msgid "Type a value of '%s' synoinfo entry" msgstr "输入 '%s' 参数的值" -#: menu.sh:716 +#: menu.sh:713 msgid "No synoinfo entries to remove" msgstr "没有Synoinfo参数被删除" -#: menu.sh:724 +#: menu.sh:721 msgid "Select synoinfo entry to remove" msgstr "选择要删除的参数" -#: menu.sh:763 +#: menu.sh:760 msgid "%s cached." msgstr "%s 已缓存." -#: menu.sh:767 +#: menu.sh:764 msgid "Cleaning cache" msgstr "清除缓存" -#: menu.sh:781 +#: menu.sh:778 msgid "" "Based on the current network situation, switch to %s mirror to downloading." msgstr "根据当前的网络状况, 已切换到 %s 镜像服务器进行下载." -#: menu.sh:785 +#: menu.sh:782 msgid "Downloading %s" msgstr "下载 %s 中" -#: menu.sh:796 menu.sh:858 +#: menu.sh:793 menu.sh:855 msgid "Check internet or cache disk space" msgstr "请检查internet或磁盘空间" -#: menu.sh:801 +#: menu.sh:798 msgid "Checking hash of %s: " msgstr "检查 %s 的 hash: " -#: menu.sh:804 +#: menu.sh:801 msgid "md5 Hash of pat not match, try again!" msgstr "pat 的 md5 Hash 不匹配, 请重试!" -#: menu.sh:808 menu.sh:910 menu.sh:920 +#: menu.sh:805 menu.sh:907 menu.sh:917 msgid "OK" msgstr "OK" -#: menu.sh:812 +#: menu.sh:809 msgid "Disassembling %s: " msgstr "解压 %s: " -#: menu.sh:817 +#: menu.sh:814 msgid "Uncompressed tar" msgstr "未压缩tar" -#: menu.sh:821 +#: menu.sh:818 msgid "Compressed tar" msgstr "压缩tar" -#: menu.sh:825 +#: menu.sh:822 msgid "Encrypted" msgstr "已加密" -#: menu.sh:830 +#: menu.sh:827 msgid "" "Could not determine if pat file is encrypted or not, maybe corrupted, try " "again!" msgstr "无法确定pat文件是否加密, 可能已损坏, 请重试!" -#: menu.sh:840 +#: menu.sh:837 msgid "Extractor cached." msgstr "已存在解密程序." -#: menu.sh:847 +#: menu.sh:844 msgid "Downloading old pat to extract synology .pat extractor..." msgstr "下载旧 pat, 提取 .pat 解密程序中..." -#: menu.sh:887 menu.sh:890 +#: menu.sh:884 menu.sh:887 msgid "Extracting..." msgstr "解压中..." -#: menu.sh:902 +#: menu.sh:899 msgid "pat Invalid, try again!" msgstr "无效的 pat, 请重试!" -#: menu.sh:905 +#: menu.sh:902 msgid "Setting hash: " msgstr "设置 hash: " -#: menu.sh:912 +#: menu.sh:909 msgid "Copying files: " msgstr "拷贝文件: " -#: menu.sh:935 +#: menu.sh:947 msgid "Addon %s not found!" msgstr "插件 %s 未找到!" -#: menu.sh:961 menu.sh:1897 +#: menu.sh:973 menu.sh:1909 msgid "Cleaning" msgstr "清除中" -#: menu.sh:963 +#: menu.sh:975 msgid "Ready!" msgstr "已就绪!" -#: menu.sh:976 +#: menu.sh:988 msgid "Switch LKM version:" msgstr "选择LKM版本:" -#: menu.sh:979 +#: menu.sh:991 msgid "Switch direct boot:" msgstr "切换直接启动:" -#: menu.sh:981 -msgid "boot IPs wait time:" -msgstr "启动IPs等待时间:" +#: menu.sh:993 +msgid "Time of timeout of wait ip in boot:" +msgstr "启动时获取IP的超时时间:" -#: menu.sh:982 -msgid "Switch way of switching kernel:" -msgstr "切换内核的切换方式:" +#: menu.sh:994 +msgid "kernel switching method:" +msgstr "内核切换的方式:" -#: menu.sh:985 -msgid "Switch 'not set MACs':" +#: menu.sh:997 +msgid "Switch 'Do not set MACs':" msgstr "切换'不设置MACs':" -#: menu.sh:986 +#: menu.sh:998 msgid "Edit user config file manually" msgstr "编辑用户配置文件" -#: menu.sh:987 +#: menu.sh:999 msgid "Try to recovery a DSM installed system" msgstr "尝试恢复已安装DSM的系统" -#: menu.sh:988 +#: menu.sh:1000 msgid "Show SATA(s) # ports and drives" msgstr "显示SATA(s) # 端口和驱动器" -#: menu.sh:990 +#: menu.sh:1002 msgid "show/modify the current pat data" msgstr "显示/修改当前pat下载链接" -#: menu.sh:992 +#: menu.sh:1004 msgid "Allow downgrade installation" msgstr "允许降级安装" -#: menu.sh:993 +#: menu.sh:1005 msgid "Format disk(s) # Without loader disk" msgstr "格式化磁盘(s) # 不含启动盘" -#: menu.sh:994 -msgid "Reset syno system password" -msgstr "重置群晖系统密码" +#: menu.sh:1006 +msgid "Reset DSM system password" +msgstr "重置 DSM 系统密码" -#: menu.sh:995 -msgid "Persistence of arpl modifications" -msgstr "持久化arpl的修改" +#: menu.sh:1007 +msgid "Save modifications of '/opt/arpl'" +msgstr "保存'/opt/arpl'的修改" -#: menu.sh:997 +#: menu.sh:1009 msgid "Custom dts file # Need rebuild" msgstr "自定义 dts 文件 # 需要重新编译" -#: menu.sh:1000 +#: menu.sh:1012 msgid "Backup bootloader disk # test" msgstr "备份启动盘 # 测试" -#: menu.sh:1001 +#: menu.sh:1013 msgid "Restore bootloader disk # test" msgstr "恢复启动盘 # 测试" -#: menu.sh:1003 +#: menu.sh:1015 msgid "Install development tools" msgstr "安装开发者工具" -#: menu.sh:1006 menu.sh:1024 menu.sh:1089 menu.sh:1096 menu.sh:1114 -#: menu.sh:1127 menu.sh:1130 menu.sh:1145 menu.sh:1146 menu.sh:1151 -#: menu.sh:1155 menu.sh:1166 menu.sh:1168 menu.sh:1185 menu.sh:1190 -#: menu.sh:1198 menu.sh:1204 menu.sh:1217 menu.sh:1220 menu.sh:1226 -#: menu.sh:1229 menu.sh:1244 menu.sh:1249 menu.sh:1253 menu.sh:1268 -#: menu.sh:1273 menu.sh:1280 menu.sh:1284 menu.sh:1287 menu.sh:1292 -#: menu.sh:1302 menu.sh:1307 menu.sh:1313 menu.sh:1317 menu.sh:1334 -#: menu.sh:1337 menu.sh:1343 menu.sh:1351 menu.sh:1359 menu.sh:1368 -#: menu.sh:1370 +#: menu.sh:1018 menu.sh:1036 menu.sh:1101 menu.sh:1108 menu.sh:1126 +#: menu.sh:1139 menu.sh:1142 menu.sh:1157 menu.sh:1158 menu.sh:1163 +#: menu.sh:1167 menu.sh:1178 menu.sh:1180 menu.sh:1197 menu.sh:1202 +#: menu.sh:1210 menu.sh:1216 menu.sh:1229 menu.sh:1232 menu.sh:1238 +#: menu.sh:1241 menu.sh:1256 menu.sh:1261 menu.sh:1265 menu.sh:1280 +#: menu.sh:1285 menu.sh:1292 menu.sh:1296 menu.sh:1299 menu.sh:1304 +#: menu.sh:1314 menu.sh:1319 menu.sh:1325 menu.sh:1329 menu.sh:1346 +#: menu.sh:1349 menu.sh:1355 menu.sh:1363 menu.sh:1371 menu.sh:1380 +#: menu.sh:1382 msgid "Advanced" msgstr "高级" -#: menu.sh:1007 menu.sh:1849 +#: menu.sh:1019 menu.sh:1861 msgid "Choose the option" msgstr "设置" -#: menu.sh:1025 +#: menu.sh:1037 msgid "Choose a waiting time(seconds)" msgstr "选择一个等待时间(秒)" -#: menu.sh:1085 +#: menu.sh:1097 msgid "\\nTotal of ports: %s\\n" msgstr "\\n端口总数: %s\\n" -#: menu.sh:1086 +#: menu.sh:1098 msgid "" "\\nPorts with color \\Z1red\\Zn as DUMMY, color \\Z2\\Zbgreen\\Zn has drive " "connected." msgstr "\\n\\Z1红色\\Zn 为模拟端口, \\Z2\\Zb绿色\\Zn 为已驱动的物理端口." -#: menu.sh:1087 +#: menu.sh:1099 msgid "\\nRecommended value:" msgstr "\\n建议值:" -#: menu.sh:1088 +#: menu.sh:1100 msgid "\\nDiskIdxMap:" msgstr "\\nDiskIdxMap:" -#: menu.sh:1095 +#: menu.sh:1107 msgid "pat: (editable)" msgstr "pat: (可编辑)" -#: menu.sh:1111 +#: menu.sh:1123 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:1112 +#: menu.sh:1124 msgid "Therefore, please insert all disks before continuing.\\n" msgstr "因此, 请插入所有磁盘后再进行操作.\\n" -#: menu.sh:1113 menu.sh:1152 +#: menu.sh:1125 menu.sh:1164 msgid "" "Warning:\\nThis operation is irreversible. Please backup important data. Do " "you want to continue?" msgstr "警告:\\n该操作不可逆, 请提前备份重要数据. 是否继续?" -#: menu.sh:1128 +#: menu.sh:1140 msgid "Removing ..." msgstr "删除中..." -#: menu.sh:1129 +#: menu.sh:1141 msgid "Remove VERSION file for all disks completed." msgstr "已移除所有磁盘的 VERSION 文件." -#: menu.sh:1156 +#: menu.sh:1168 msgid "" "Warning:\\nThe current hds is in raid, do you still want to format them?" msgstr "警告:\\n当前的硬盘处于raid中,是否仍要格式化?" -#: menu.sh:1167 +#: menu.sh:1179 msgid "Formatting ..." msgstr "格式化中..." -#: menu.sh:1169 +#: menu.sh:1181 msgid "Formatting is complete." msgstr "格式化完成." -#: menu.sh:1186 +#: menu.sh:1198 msgid "The installed Syno system not found in the currently inserted disks!" msgstr "未在当前插入的硬盘中找到已安装的syno系统!" -#: menu.sh:1191 +#: menu.sh:1203 msgid "Choose a user name" msgstr "选择一个用户" -#: menu.sh:1199 +#: menu.sh:1211 msgid "Type a new password for user '%s'" msgstr "输入用户 '%s' 的新密码" -#: menu.sh:1205 +#: menu.sh:1217 msgid "Invalid password" msgstr "无效密码" -#: menu.sh:1218 +#: menu.sh:1230 msgid "Resetting ..." msgstr "重置中" -#: menu.sh:1221 +#: menu.sh:1233 msgid "Password reset completed." msgstr "重置密码完成." -#: menu.sh:1227 menu.sh:1285 menu.sh:1338 +#: menu.sh:1239 menu.sh:1297 menu.sh:1350 msgid "" "Warning:\\nDo not terminate midway, otherwise it may cause damage to the " "arpl. Do you want to continue?" msgstr "警告:\\n请不要中途停止, 否则将导致arpl引导损毁, 是否继续?" -#: menu.sh:1230 -msgid "Persisting ..." -msgstr "持久化中..." +#: menu.sh:1242 +msgid "Saving ..." +msgstr "保存中..." -#: menu.sh:1245 -msgid "Persisting is complete." -msgstr "持久化完成." +#: menu.sh:1257 +msgid "Save is complete." +msgstr "保存完成." -#: menu.sh:1254 +#: menu.sh:1266 msgid "" "Currently, only dts format files are supported. Please prepare and click to " "confirm uploading.\\n(saved in /mnt/p3/users/)" msgstr "目前, 只支持dts格式的文件, 请准备并点击确认上传.\\n(保存于 /mnt/p3/users/ 中)" -#: menu.sh:1269 +#: menu.sh:1281 msgid "Not a valid dts file, please try again!" msgstr "dts 文件无效, 请重试!" -#: menu.sh:1274 +#: menu.sh:1286 msgid "A valid dts file, Automatically import at compile time." msgstr "dts 文件有效, 将在编译时自动导入." -#: menu.sh:1288 +#: menu.sh:1300 msgid "Backuping..." msgstr "备份中..." -#: menu.sh:1293 +#: menu.sh:1305 msgid "" "Failed to generate backup. There may be insufficient memory. Please clear " "the cache and try again!" msgstr "生成备份失败, 可能内存不足, 请清除缓存重试!" -#: menu.sh:1300 +#: menu.sh:1312 msgid "Click on the address above to download." msgstr "点击上面的地址下载." -#: menu.sh:1301 +#: menu.sh:1313 msgid "" "Please confirm the completion of the download before closing this window." msgstr "请确认下载完成再关闭此窗口." -#: menu.sh:1308 +#: menu.sh:1320 msgid "backup is complete." msgstr "备份完成." -#: menu.sh:1318 +#: menu.sh:1330 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:1335 +#: menu.sh:1347 msgid "Not a valid .zip/.img.gz file, please try again!" msgstr "不是有效的.zip/.img.gz文件, 请重试!" -#: menu.sh:1344 +#: menu.sh:1356 msgid "Writing..." msgstr "写入中..." -#: menu.sh:1352 +#: menu.sh:1364 msgid "Restore bootloader disk with success to %s!\\nReboot?" msgstr "成功恢复启动盘到 %s!\\n重启?" -#: menu.sh:1360 +#: menu.sh:1372 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:1369 +#: menu.sh:1381 msgid "opkg installing ..." msgstr "opkg 安装中 ..." -#: menu.sh:1371 +#: menu.sh:1383 msgid "" "opkg install is complete. Please reconnect to SSH/web, or execute 'source ~/." "bashrc'" msgstr "opkg 安装完成. 请重新链接 SSH/web, 或者执行 'source ~/.bashrc'" -#: menu.sh:1381 menu.sh:1418 menu.sh:1425 +#: menu.sh:1393 menu.sh:1430 menu.sh:1437 msgid "Try recovery DSM" msgstr "尝试恢复DSM系统" -#: menu.sh:1382 +#: menu.sh:1394 msgid "Trying to recovery a DSM installed system" msgstr "尝试恢复已安装的DSM系统中" -#: menu.sh:1408 +#: menu.sh:1420 msgid "Found a installation:\\nModel: %s\\nProductversion: %s" msgstr "找到已安装:\\n型号: %s\\n版本: %s" -#: menu.sh:1412 +#: menu.sh:1424 msgid "\\nSerial: %s" msgstr "\\nSN: %s" -#: menu.sh:1426 +#: menu.sh:1438 msgid "Unfortunately I couldn't mount the DSM partition!" msgstr "很遗憾, 我无法挂载DSM分区!" -#: menu.sh:1434 menu.sh:1440 +#: menu.sh:1446 menu.sh:1452 msgid "Edit with caution" msgstr "请谨慎编辑" -#: menu.sh:1462 +#: menu.sh:1474 msgid "Alert" msgstr "警告" -#: menu.sh:1463 +#: menu.sh:1475 msgid "Config changed, would you like to rebuild the loader?" msgstr "配置已更改, 是否重新编译引导?" -#: menu.sh:1475 menu.sh:1840 +#: menu.sh:1487 menu.sh:1852 msgid "Choose a language" msgstr "选择语言" -#: menu.sh:1489 +#: menu.sh:1501 msgid "Choose a layout" msgstr "选择布局" -#: menu.sh:1501 +#: menu.sh:1513 msgid "Choice a keymap" msgstr "选择键盘" -#: menu.sh:1520 menu.sh:1569 menu.sh:1620 menu.sh:1683 menu.sh:1687 -#: menu.sh:1691 menu.sh:1695 menu.sh:1703 menu.sh:1711 menu.sh:1719 -#: menu.sh:1727 +#: menu.sh:1532 menu.sh:1581 menu.sh:1632 menu.sh:1695 menu.sh:1699 +#: menu.sh:1703 menu.sh:1707 menu.sh:1715 menu.sh:1723 menu.sh:1731 +#: menu.sh:1739 msgid "Update %s" msgstr "更新 %s" -#: menu.sh:1523 +#: menu.sh:1535 msgid "Checking last version" msgstr "检测新版本中" -#: menu.sh:1532 menu.sh:1535 +#: menu.sh:1544 menu.sh:1547 msgid "Error checking new version" msgstr "检测新版本错误" -#: menu.sh:1542 +#: menu.sh:1554 msgid "No new version." msgstr "没有新版本." -#: menu.sh:1546 +#: menu.sh:1558 msgid "No new version. Actual version is %s\\nForce update?" msgstr "没有新版本. 实际版本为 %s\\n强制更新?" -#: menu.sh:1551 +#: menu.sh:1563 msgid "Downloading last version" msgstr "下载新版本中" -#: menu.sh:1557 menu.sh:1560 +#: menu.sh:1569 menu.sh:1572 msgid "Error downloading new version" msgstr "下载新版本错误" -#: menu.sh:1571 menu.sh:1622 +#: menu.sh:1583 menu.sh:1634 msgid "Extracting last version" msgstr "解压新版本" -#: menu.sh:1575 +#: menu.sh:1587 msgid "Error extracting update file" msgstr "更新文件解压错误" -#: menu.sh:1582 +#: menu.sh:1594 msgid "Checksum do not match!" msgstr "Checksum不匹配!" -#: menu.sh:1591 +#: menu.sh:1603 msgid "" "The current version does not support upgrading to the latest update.zip. " "Please remake the bootloader disk!" msgstr "当前版本不支持最新的update.zip升级, 请重新制作引导盘!" -#: menu.sh:1596 +#: menu.sh:1608 msgid "Installing new files" msgstr "安装更新中" -#: menu.sh:1613 +#: menu.sh:1625 msgid "Arpl updated with success to %s!\\nReboot?" msgstr "Arpl更新成功 %s!\\n重启?" -#: menu.sh:1628 +#: menu.sh:1640 msgid "Installing new %s" msgstr "安装新 %s 中" -#: menu.sh:1657 menu.sh:1660 +#: menu.sh:1669 menu.sh:1672 msgid "%s updated with success!" msgstr "%s 更新成功!" -#: menu.sh:1671 +#: menu.sh:1683 msgid "Update all" msgstr "更新所有" -#: menu.sh:1672 +#: menu.sh:1684 msgid "Update arpl" msgstr "更新arpl" -#: menu.sh:1673 +#: menu.sh:1685 msgid "Update addons" msgstr "更新插件" -#: menu.sh:1674 +#: menu.sh:1686 msgid "Update modules" msgstr "更新模块" -#: menu.sh:1675 +#: menu.sh:1687 msgid "Update LKMs" msgstr "更新LKMs" -#: menu.sh:1676 +#: menu.sh:1688 msgid "Set proxy server" msgstr "设置代理" -#: menu.sh:1677 +#: menu.sh:1689 msgid "Local upload" msgstr "本地上传" -#: menu.sh:1683 menu.sh:1711 +#: menu.sh:1695 menu.sh:1723 msgid "addons" msgstr "插件" -#: menu.sh:1687 menu.sh:1719 +#: menu.sh:1699 menu.sh:1731 msgid "modules" msgstr "模块" -#: menu.sh:1691 menu.sh:1727 +#: menu.sh:1703 menu.sh:1739 msgid "LKMs" msgstr "LKMs" -#: menu.sh:1695 menu.sh:1703 +#: menu.sh:1707 menu.sh:1715 msgid "arpl" msgstr "arpl" -#: menu.sh:1737 menu.sh:1748 menu.sh:1759 menu.sh:1769 menu.sh:1786 -#: menu.sh:1800 +#: menu.sh:1749 menu.sh:1760 menu.sh:1771 menu.sh:1781 menu.sh:1798 +#: menu.sh:1812 msgid "Update" msgstr "更新" -#: menu.sh:1738 +#: menu.sh:1750 msgid "Please enter a proxy server url" msgstr "请输入代理服务器url" -#: menu.sh:1749 +#: menu.sh:1761 msgid "Invalid proxy server url, continue?" -msgstr "无效的代理服务器url,是否继续?" +msgstr "无效的代理服务器url, 是否继续?" -#: menu.sh:1764 +#: menu.sh:1776 msgid "" "Please keep the attachment name consistent with the attachment name on " "Github.\\n" msgstr "请保持附件名称与 github 上附件名称一致.\\n" -#: menu.sh:1765 +#: menu.sh:1777 msgid "Upload update.zip will update arpl.\\n" msgstr "上传 update.zip 将更新 arpl.\\n" -#: menu.sh:1766 +#: menu.sh:1778 msgid "Upload addons.zip will update Addons.\\n" msgstr "上传 addons.zip 将更新 插件.\\n" -#: menu.sh:1767 +#: menu.sh:1779 msgid "Upload modules.zip will update Modules.\\n" msgstr "上传 modules.zip 将更新 模块.\\n" -#: menu.sh:1768 +#: menu.sh:1780 msgid "Upload rp-lkms.zip will update LKMs.\\n" msgstr "上传 rp-lkms.zip 将更新 LKMs.\\n" -#: menu.sh:1821 +#: menu.sh:1833 msgid "Choose a model" msgstr "选择型号" -#: menu.sh:1823 +#: menu.sh:1835 msgid "Choose a version" msgstr "选择版本" -#: menu.sh:1825 +#: menu.sh:1837 msgid "Addons menu" msgstr "插件" -#: menu.sh:1826 +#: menu.sh:1838 msgid "Modules menu" msgstr "模块" -#: menu.sh:1827 +#: menu.sh:1839 msgid "Cmdline menu" msgstr "设置Cmdline" -#: menu.sh:1828 +#: menu.sh:1840 msgid "Synoinfo menu" msgstr "设置Synoinfo" -#: menu.sh:1831 +#: menu.sh:1843 msgid "Advanced menu" msgstr "高级设置" -#: menu.sh:1834 +#: menu.sh:1846 msgid "Build the loader" msgstr "编译引导" -#: menu.sh:1838 +#: menu.sh:1850 msgid "Boot the loader" msgstr "启动" -#: menu.sh:1841 +#: menu.sh:1853 msgid "Choose a keymap" msgstr "选择键盘" -#: menu.sh:1843 +#: menu.sh:1855 msgid "Clean disk cache" msgstr "清除磁盘缓存" -#: menu.sh:1845 +#: menu.sh:1857 msgid "Update menu" msgstr "更新" -#: menu.sh:1909 +#: menu.sh:1921 msgid "Choose a action" msgstr "选择动作" -#: menu.sh:1910 +#: menu.sh:1922 msgid "Poweroff" msgstr "关机" -#: menu.sh:1911 +#: menu.sh:1923 msgid "Reboot" msgstr "重启" -#: menu.sh:1912 +#: menu.sh:1924 msgid "Reboot to arpl" msgstr "重启到arpl" -#: menu.sh:1913 +#: menu.sh:1925 msgid "Back to shell" msgstr "退出到shell" -#: menu.sh:1939 +#: menu.sh:1951 msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu" msgstr "执行 \\033[1;32mmenu.sh\\033[0m 重新进入设置菜单" diff --git a/files/board/arpl/overlayfs/opt/arpl/menu.sh b/files/board/arpl/overlayfs/opt/arpl/menu.sh index 2901bb2a..b0a13813 100755 --- a/files/board/arpl/overlayfs/opt/arpl/menu.sh +++ b/files/board/arpl/overlayfs/opt/arpl/menu.sh @@ -142,9 +142,6 @@ function modelMenu() { writeConfigKey "patsum" "" "${USER_CONFIG_FILE}" SN=$(generateSerial "${MODEL}") writeConfigKey "sn" "${SN}" "${USER_CONFIG_FILE}" - # get logo.png - rm -f "${CACHE_PATH}/logo.png" - curl -skL "https://www.synology.com/api/products/getPhoto?product=${MODEL/+/%2B}&type=img_s&sort=0" -o "${CACHE_PATH}/logo.png" DIRTY=1 fi } @@ -178,7 +175,7 @@ function productversMenu() { fi # get online pat data dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \ - --infobox "$(TEXT "Get online pat data ..")" 0 0 + --infobox "$(TEXT "Get pat data ..")" 0 0 idx=0 while [ $idx -le 3 ]; do # Loop 3 times, if successful, break speed_a=$(ping -c 1 -W 5 www.synology.com | awk '/time=/ {print $7}' | cut -d '=' -f 2) @@ -196,11 +193,11 @@ function productversMenu() { idx=$((idx + 1)) done if [ -z "${paturl}" -o -z "${patsum}" ]; then - MSG="$(TEXT "Failed to get online pat data,\nPlease manually fill in the URL and md5sum of the corresponding version of pat.")" + MSG="$(TEXT "Failed to get pat data,\nPlease manually fill in the URL and md5sum of the corresponding version of pat.")" paturl="" patsum="" else - MSG="$(TEXT "Successfully to get online pat data,\nPlease confirm or modify as needed.")" + MSG="$(TEXT "Successfully to get pat data,\nPlease confirm or modify as needed.")" fi dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \ --form "${MSG}" 10 110 2 "URL" 1 1 "${paturl}" 1 5 100 0 "MD5" 2 1 "${patsum}" 2 5 100 0 \ @@ -920,10 +917,25 @@ function extractDsmFiles() { echo "$(TEXT "OK")" } +# 1 - model +function getLogo() { + rm -f "${CACHE_PATH}/logo.png" + STATUS=$(curl -skL -w "%{http_code}" "https://www.synology.com/api/products/getPhoto?product=${MODEL/+/%2B}&type=img_s&sort=0" -o "${CACHE_PATH}/logo.png") + if [ $? -ne 0 -o ${STATUS} -ne 200 -o -f "${CACHE_PATH}/logo.png" ]; then + convert -rotate 180 "${CACHE_PATH}/logo.png" "${CACHE_PATH}/logo.png" 2>/dev/null + magick montage "${CACHE_PATH}/logo.png" -background 'none' -tile '3x3' -geometry '350x210' "${CACHE_PATH}/logo.png" 2>/dev/null + convert -rotate 180 "${CACHE_PATH}/logo.png" "${CACHE_PATH}/logo.png" 2>/dev/null + fi +} + ############################################################################### # Where the magic happens! function make() { + # clear clear + # get logo.png + getLogo "${MODEL}" + PLATFORM="$(readModelKey "${MODEL}" "platform")" KVER="$(readModelKey "${MODEL}" "productvers.[${PRODUCTVER}].kver")" KPRE="$(readModelKey "${MODEL}" "productvers.[${PRODUCTVER}].kpre")" @@ -978,11 +990,11 @@ function advancedMenu() { if loaderIsConfigured; then echo "q \"$(TEXT "Switch direct boot:") \Z4${DIRECTBOOT}\Zn\"" >>"${TMP_PATH}/menu" if [ "${DIRECTBOOT}" = "false" ]; then - echo "w \"$(TEXT "boot IPs wait time:") \Z4${BOOTIPWAIT}\Zn\"" >>"${TMP_PATH}/menu" - echo "k \"$(TEXT "Switch way of switching kernel:") \Z4${KERNELWAY}\Zn\"" >>"${TMP_PATH}/menu" + echo "w \"$(TEXT "Time of timeout of wait ip in boot:") \Z4${BOOTIPWAIT}\Zn\"" >>"${TMP_PATH}/menu" + echo "k \"$(TEXT "kernel switching method:") \Z4${KERNELWAY}\Zn\"" >>"${TMP_PATH}/menu" fi fi - echo "m \"$(TEXT "Switch 'not set MACs':") \Z4${NOTSETMACS}\Zn\"" >>"${TMP_PATH}/menu" + echo "m \"$(TEXT "Switch 'Do not set MACs':") \Z4${NOTSETMACS}\Zn\"" >>"${TMP_PATH}/menu" echo "u \"$(TEXT "Edit user config file manually")\"" >>"${TMP_PATH}/menu" echo "t \"$(TEXT "Try to recovery a DSM installed system")\"" >>"${TMP_PATH}/menu" echo "s \"$(TEXT "Show SATA(s) # ports and drives")\"" >>"${TMP_PATH}/menu" @@ -991,8 +1003,8 @@ function advancedMenu() { fi echo "a \"$(TEXT "Allow downgrade installation")\"" >>"${TMP_PATH}/menu" echo "f \"$(TEXT "Format disk(s) # Without loader disk")\"" >>"${TMP_PATH}/menu" - echo "x \"$(TEXT "Reset syno system password")\"" >>"${TMP_PATH}/menu" - echo "p \"$(TEXT "Persistence of arpl modifications")\"" >>"${TMP_PATH}/menu" + echo "x \"$(TEXT "Reset DSM system password")\"" >>"${TMP_PATH}/menu" + echo "p \"$(TEXT "Save modifications of '/opt/arpl'")\"" >>"${TMP_PATH}/menu" if [ -n "${MODEL}" -a "true" = "$(readModelKey "${MODEL}" "dt")" ]; then echo "d \"$(TEXT "Custom dts file # Need rebuild")\"" >>"${TMP_PATH}/menu" fi @@ -1227,7 +1239,7 @@ function advancedMenu() { --yesno "$(TEXT "Warning:\nDo not terminate midway, otherwise it may cause damage to the arpl. Do you want to continue?")" 0 0 [ $? -ne 0 ] && return dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ - --infobox "$(TEXT "Persisting ...")" 0 0 + --infobox "$(TEXT "Saving ...")" 0 0 RDXZ_PATH=/tmp/rdxz_tmp mkdir -p "${RDXZ_PATH}" ( @@ -1242,7 +1254,7 @@ function advancedMenu() { ) || true rm -rf "${RDXZ_PATH}" dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Advanced")" \ - --msgbox ""$(TEXT "Persisting is complete.")"" 0 0 + --msgbox ""$(TEXT "Save is complete.")"" 0 0 ;; d) if ! tty | grep -q "/dev/pts"; then