Init Padavan
This commit is contained in:
		
							
								
								
									
										27
									
								
								configs/config.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								configs/config.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| #!/bin/bash | ||||
| #--------------------------------------------------------------- | ||||
| #-Скрипт разработан специально для 4PDA от Foreman (Freize.org)- | ||||
| #-Распространение без ведома автора запрещено!                 - | ||||
| #--------------------------------------------------------------- | ||||
| # Скрипты (не менять) | ||||
| DIRS=scripts | ||||
| # Конфиги (не менять) | ||||
| DIRC=configs | ||||
| # Файлы (не менять) | ||||
| DIRF=files | ||||
| # Формат даты (не менять) | ||||
| SNAPSHOT=$(date +%Y-%m-%d_%H-%M-%S) | ||||
| # Параметры роутера | ||||
| # Роутер | ||||
| ROUTERY="" | ||||
| # Репозиторий | ||||
| gitrepo="https://bitbucket.org/padavan/rt-n56u.git" | ||||
| # Папка исходного кода | ||||
| ICP=rt-n56u | ||||
| export ICP | ||||
| # Supported languages: english (EN), russian (RU), chinese (ZH) | ||||
| # PROMETHEUS_LANG has highest priority over LANG system variable | ||||
| # PROMETHEUS_LANG=EN | ||||
| #--------------------------------------------------------------- | ||||
| # Конец скрипта | ||||
| #--------------------------------------------------------------- | ||||
							
								
								
									
										10
									
								
								configs/git.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								configs/git.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,10 @@ | ||||
| #!/bin/bash | ||||
| #--------------------------------------------------------------- | ||||
| #-Скрипт разработан специально для 4PDA от Foreman (Freize.org)- | ||||
| #-Распространение без ведома автора запрещено!                 - | ||||
| #--------------------------------------------------------------- | ||||
| revisiongit=32a93db | ||||
| PROMETHEUS3="-40" | ||||
| #--------------------------------------------------------------- | ||||
| # Конец скрипта | ||||
| #--------------------------------------------------------------- | ||||
							
								
								
									
										234
									
								
								configs/routers/mi-r3g.config.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										234
									
								
								configs/routers/mi-r3g.config.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,234 @@ | ||||
| ### Target Vendor/Product (support only Ralink RT3883/MT7620/MT7621/MT7628) | ||||
| CONFIG_VENDOR=XIAOMI | ||||
| CONFIG_PRODUCT=MT7621 | ||||
|  | ||||
| ### Target ProductID (board select, max 12 symbols) | ||||
| CONFIG_FIRMWARE_PRODUCT_ID="MI-R3G" | ||||
|  | ||||
| ############################################################ | ||||
| ### Linux kernel configuration | ||||
| ############################################################ | ||||
|  | ||||
| ### Force MT7621 CPU clock to 900MHz (override Uboot settings) | ||||
| #CONFIG_FIRMWARE_CPU_900MHZ=y | ||||
|  | ||||
| ### Enable MT7621 CPU sleep mode (downclock to 220MHz on idle) | ||||
| #CONFIG_FIRMWARE_CPU_SLEEP=y | ||||
|  | ||||
| ### Kernel driver select for WiFi AP 2.4GHz | ||||
| ### 4.1 = MT7603E v4.1.0.0 | ||||
| CONFIG_FIRMWARE_WIFI2_DRIVER=4.1 | ||||
|  | ||||
| ### Kernel driver select for WiFi AP 5GHz | ||||
| ### 3.0 = MT7612E v3.0.4.0 | ||||
| CONFIG_FIRMWARE_WIFI5_DRIVER=3.0 | ||||
|  | ||||
| ### Enable IPv6 support | ||||
| CONFIG_FIRMWARE_ENABLE_IPV6=y | ||||
|  | ||||
| ### Enable USB support | ||||
| CONFIG_FIRMWARE_ENABLE_USB=y | ||||
|  | ||||
| ### Enable FAT/FAT32 filesystem support. ~0.1MB | ||||
| CONFIG_FIRMWARE_ENABLE_FAT=y | ||||
|  | ||||
| ### Enable exFAT (FAT/FAT32 too) filesystem support. ~0.12MB | ||||
| #CONFIG_FIRMWARE_ENABLE_EXFAT=y | ||||
|  | ||||
| ### Enable EXT2 filesystem support. ~0.1MB | ||||
| #CONFIG_FIRMWARE_ENABLE_EXT2=y | ||||
|  | ||||
| ### Enable EXT3 filesystem support. ~0.2MB | ||||
| #CONFIG_FIRMWARE_ENABLE_EXT3=y | ||||
|  | ||||
| ### Enable EXT4 (EXT3/2 too) filesystem support. ~0.4MB | ||||
| CONFIG_FIRMWARE_ENABLE_EXT4=y | ||||
|  | ||||
| ### Enable XFS filesystem support. ~0.6MB | ||||
| #CONFIG_FIRMWARE_ENABLE_XFS=y | ||||
|  | ||||
| ### Enable FUSE (filesystems in userspace) support. ~0.1MB | ||||
| CONFIG_FIRMWARE_ENABLE_FUSE=y | ||||
|  | ||||
| ### Enable swap files/partitions support. ~0.05MB | ||||
| CONFIG_FIRMWARE_ENABLE_SWAP=y | ||||
|  | ||||
| ### Include UVC camera modules. ~0.2MB | ||||
| CONFIG_FIRMWARE_INCLUDE_UVC=y | ||||
|  | ||||
| ### Include USB-HID modules. ~0.2MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_HID=y | ||||
|  | ||||
| ### Include USB-Serial modules (e.g. pl2303). ~0.03MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_SERIAL=y | ||||
|  | ||||
| ### Include USB-Audio modules ~0.46MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_AUDIO=y | ||||
|  | ||||
| ### Include XFRM (IPsec) modules & iptables extension ~ 0.2MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_XFRM=y | ||||
|  | ||||
| ### Include network QoS scheduling modules. ~0.2MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_QOS=y | ||||
|  | ||||
| ### Include IMQ module for shapers (a bit of performance degradation). ~0.02MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_IMQ=y | ||||
|  | ||||
| ### Include IFB module for shapers. ~0.03MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_IFB=y | ||||
|  | ||||
| ### Include IPSet utility and kernel modules. ~0.4MB | ||||
| CONFIG_FIRMWARE_INCLUDE_IPSET=y | ||||
|  | ||||
| ### Include NFSv3 server. ~0.6MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_NFSD=y | ||||
|  | ||||
| ### Include NFSv3 client. ~0.5MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_NFSC=y | ||||
|  | ||||
| ### Include CIFS (SMB) client. ~0.2MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_CIFS=y | ||||
|  | ||||
| ############################################################ | ||||
| ### Userspace configuration | ||||
| ############################################################ | ||||
|  | ||||
| ### Include WebUI international resources. Increased firmware size | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_BR=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_CZ=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_DA=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_DE=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_ES=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_FI=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_FR=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_NO=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_PL=y | ||||
| CONFIG_FIRMWARE_INCLUDE_LANG_RU=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_SV=y | ||||
| #CONFIG_FIRMWARE_INCLUDE_LANG_UK=y | ||||
|  | ||||
| ### Include NTFS-3G FUSE driver (instead of Paragon "ufsd"). ~0.4MB | ||||
| CONFIG_FIRMWARE_INCLUDE_NTFS_3G=y | ||||
|  | ||||
| ### Include LPR printer daemon. ~0.12MB | ||||
| CONFIG_FIRMWARE_INCLUDE_LPRD=y | ||||
|  | ||||
| ### Include USB-over-Ethernet printer daemon. ~0.05MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_U2EC=y | ||||
|  | ||||
| ### Include "tcpdump" utility. ~0.6MB | ||||
| CONFIG_FIRMWARE_INCLUDE_TCPDUMP=y | ||||
|  | ||||
| ### Include "hdparm" utility (allow set HDD spindown timeout and APM). ~0.1MB | ||||
| CONFIG_FIRMWARE_INCLUDE_HDPARM=y | ||||
|  | ||||
| ### Include "parted" utility (allow make GPT partitions). ~0.3MB | ||||
| CONFIG_FIRMWARE_INCLUDE_PARTED=y | ||||
|  | ||||
| ### Include SMB (and WINS) server. ~1.5MB | ||||
| CONFIG_FIRMWARE_INCLUDE_SMBD=y | ||||
|  | ||||
| ### Include WINS server only. ~0.4MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_WINS=y | ||||
|  | ||||
| ### Include syslog for SMB and WINS server. ~0.3MB | ||||
| CONFIG_FIRMWARE_INCLUDE_SMBD_SYSLOG=y | ||||
|  | ||||
| ### Include FTP server. ~0.2MB | ||||
| CONFIG_FIRMWARE_INCLUDE_FTPD=y | ||||
|  | ||||
| ### Include alternative L2TP control client RP-L2TP. ~0.1MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_RPL2TP=y | ||||
|  | ||||
| ### Include EAP-TTLS and EAP-PEAP authentication support. openssl ~1.2MB, wpa_supplicant +0.04MB | ||||
| CONFIG_FIRMWARE_INCLUDE_EAP_PEAP=y | ||||
|  | ||||
| ### Include HTTPS support for DDNS client. openssl ~1.2MB | ||||
| CONFIG_FIRMWARE_INCLUDE_DDNS_SSL=y | ||||
|  | ||||
| ### Include HTTPS support. openssl ~1.2MB | ||||
| CONFIG_FIRMWARE_INCLUDE_HTTPS=y | ||||
|  | ||||
| ### Include sftp-server. openssl ~1.2MB, sftp-server ~0.06MB | ||||
| CONFIG_FIRMWARE_INCLUDE_SFTP=y | ||||
|  | ||||
| ### Include dropbear SSH. ~0.3MB | ||||
| CONFIG_FIRMWARE_INCLUDE_DROPBEAR=y | ||||
|  | ||||
| ### Make the dropbear symmetrical ciphers and hashes faster. ~0.06MB | ||||
| CONFIG_FIRMWARE_INCLUDE_DROPBEAR_FAST_CODE=y | ||||
|  | ||||
| ### Include OpenSSH instead of dropbear. openssl ~1.2MB, openssh ~1.0MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_OPENSSH=y | ||||
|  | ||||
| ### Include OpenVPN. IPv6 required. openssl ~1.2MB, openvpn ~0.4MB | ||||
| CONFIG_FIRMWARE_INCLUDE_OPENVPN=y | ||||
|  | ||||
| ### Include StrongSwan. XFRM modules ~0.2MB, strongswan ~0.7MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_SSWAN=y | ||||
|  | ||||
| ### Include Elliptic Curves (EC) to openssl library. ~0.1MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y | ||||
|  | ||||
| ### Include "openssl" executable for generate certificates. ~0.4MB | ||||
| CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y | ||||
|  | ||||
| ### Include xUPNPd IPTV mediaserver. ~0.3MB | ||||
| CONFIG_FIRMWARE_INCLUDE_XUPNPD=y | ||||
|  | ||||
| ### Include Minidlna UPnP mediaserver. ~1.6MB | ||||
| CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y | ||||
|  | ||||
| ### Include Firefly iTunes mediaserver. ~1.0MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_FIREFLY=y | ||||
|  | ||||
| ### Include ffmpeg 0.11.x instead of 0.6.x for Minidlna and Firefly. ~0.1MB | ||||
| CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y | ||||
|  | ||||
| ### Include Transmission torrent. openssl ~1.2MB, transmission ~1.5MB | ||||
| CONFIG_FIRMWARE_INCLUDE_TRANSMISSION=y | ||||
|  | ||||
| ### Include Transmission-Web-Control (advanced WebUI). ~0.8MB | ||||
| CONFIG_FIRMWARE_INCLUDE_TRANSMISSION_WEB_CONTROL=y | ||||
|  | ||||
| ### Include Aria2 download manager. openssl ~1.2MB, aria2 ~3.5MB | ||||
| CONFIG_FIRMWARE_INCLUDE_ARIA=y | ||||
|  | ||||
| ### Include Aria2 WEB control. ~0.7MB | ||||
| CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y | ||||
|  | ||||
| ### Include TOR proxy ~2.3MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_TOR=y | ||||
|  | ||||
| ### Include GeoIP database info for TOR proxy ~1.1MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_TOR_GEOIP=y | ||||
|  | ||||
| ### Include IPv6 GeoIP database info for TOR proxy ~1.1MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_TOR_GEOIPV6=y | ||||
|  | ||||
| ### Include Privoxy proxy ~0.3MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_PRIVOXY=y | ||||
|  | ||||
| ### Include DNSCrypt proxy ~0.5MB | ||||
| #CONFIG_FIRMWARE_INCLUDE_DNSCRYPT=y | ||||
|  | ||||
| ### Include WPAD support | ||||
| #CONFIG_FIRMWARE_INCLUDE_WPAD=y | ||||
|  | ||||
| ### Include compressed memory support | ||||
| #CONFIG_FIRMWARE_INCLUDE_ZRAM=y | ||||
|  | ||||
|  | ||||
|  | ||||
| ############################################################ | ||||
| ### Connection settings SSH PROMETHEUS | ||||
| ############################################################ | ||||
| ### IP | ||||
| IPWRT=192.168.1.1 | ||||
| ### Login | ||||
| ROOTWRT=admin | ||||
| ### Password | ||||
| PWDR="admin" | ||||
| ### SSH Port | ||||
| ssh_port="22" | ||||
| ############################################################ | ||||
							
								
								
									
										27
									
								
								configs/script.config.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								configs/script.config.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| #!/bin/bash | ||||
| #--------------------------------------------------------------- | ||||
| #-Скрипт разработан специально для 4PDA от Foreman (Freize.org)- | ||||
| #-Распространение без ведома автора запрещено!                 - | ||||
| #--------------------------------------------------------------- | ||||
| # Скрипты (не менять) | ||||
| DIRS=scripts | ||||
| # Конфиги (не менять) | ||||
| DIRC=configs | ||||
| # Файлы (не менять) | ||||
| DIRF=files | ||||
| # Формат даты (не менять) | ||||
| SNAPSHOT=$(date +%Y-%m-%d_%H-%M-%S) | ||||
| # Параметры роутера | ||||
| # Роутер | ||||
| ROUTERY="xiaomi/mi-r3g.config" | ||||
| # Репозиторий | ||||
| gitrepo="https://gitlab.com/padavan-ng/padavan-ng.git" | ||||
| # Папка исходного кода | ||||
| ICP=padavan-ng | ||||
| export ICP | ||||
| # Supported languages: english (EN), russian (RU), chinese (ZH) | ||||
| # PROMETHEUS_LANG has highest priority over LANG system variable | ||||
| # PROMETHEUS_LANG=EN | ||||
| #--------------------------------------------------------------- | ||||
| # Конец скрипта | ||||
| #--------------------------------------------------------------- | ||||
							
								
								
									
										103
									
								
								configs/uboot.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										103
									
								
								configs/uboot.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,103 @@ | ||||
| #!/bin/bash | ||||
| #--------------------------------------------------------------- | ||||
| #-Скрипт разработан специально для 4PDA от Foreman (Freize.org)- | ||||
| #-Распространение без ведома автора запрещено!                 - | ||||
| #--------------------------------------------------------------- | ||||
| . ./scripts/localization.sh | ||||
| function uboot_patch { | ||||
| if [[ "$ROUTERY" == *"ac51u"* ]] | ||||
| then | ||||
| ROUTERU="asus_rt-ac51u_ac54u" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"ac54u"* ]] | ||||
| then | ||||
| ROUTERU="asus_rt-ac51u_ac54u" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"ac1200hp"* ]] | ||||
| then | ||||
| ROUTERU="asus_rt-ac1200hp" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"mi-mini"* ]] | ||||
| then | ||||
| ROUTERU="xiaomi_mi-mini" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"mi-nano"* ]] | ||||
| then | ||||
| ROUTERU="xiaomi_mi-nano" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"mi-3"* && "$ROUTERY" != *"mi-3c"* && "$ROUTERY" != *"mi-3_spi"* ]] | ||||
| then | ||||
| ROUTERU="xiaomi_mi-3" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"mi-3c"* ]] | ||||
| then | ||||
| ROUTERU="xiaomi_mi-3c" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"n11p"* ]] | ||||
| then | ||||
| ROUTERU="asus_rt-n11p" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"n14u"* ]] | ||||
| then | ||||
| ROUTERU="asus_rt-n14u" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"n56u_"* ]] | ||||
| then | ||||
| ROUTERU="asus_rt-n56u" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"n56ub1"* ]] | ||||
| then | ||||
| ROUTERU="asus_rt-n56u_b1" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"wt3020"* && "$ROUTERY" != *"wt3020a"* ]] | ||||
| then | ||||
| ROUTERU="nexx_wt3020h" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"wt3020a"* ]] | ||||
| then | ||||
| ROUTERU="nexx_wt3020a" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"n750db"* ]] | ||||
| then | ||||
| ROUTERU="belkin_n750db" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"swr1100"* ]] | ||||
| then | ||||
| ROUTERU="samsung_cy-swr-1100" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"zbt-wg3526"* ]] | ||||
| then | ||||
| ROUTERU="zbt-wg3526" | ||||
| UBOOTMIPS=2 | ||||
| elif [[ "$ROUTERY" == *"mqwiti-256"* ]] | ||||
| then | ||||
| ROUTERU="mqmaker-witi-256" | ||||
| UBOOTMIPS=2 | ||||
| elif [[ "$ROUTERY" == *"mqwiti-512"* ]] | ||||
| then | ||||
| ROUTERU="mqmaker-witi-512" | ||||
| UBOOTMIPS=2 | ||||
| elif [[ "$ROUTERY" == *"unielec-U7621-06"* ]] | ||||
| then | ||||
| ROUTERU="unielec_U7621-06" | ||||
| UBOOTMIPS=2 | ||||
| elif [[ "$ROUTERY" == *"gl-mt300n"* ]] | ||||
| then | ||||
| ROUTERU="gl-mt300n" | ||||
| UBOOTMIPS=1 | ||||
| elif [[ "$ROUTERY" == *"gl-mt300a"* ]] | ||||
| then | ||||
| ROUTERU="gl-mt300a" | ||||
| UBOOTMIPS=1 | ||||
| else | ||||
| message unsupported_router | ||||
| read_n1 | ||||
| erorubootconfig=1 | ||||
| export erorubootconfig | ||||
| return | ||||
| fi } | ||||
| erorubootconfig=0 | ||||
| export erorubootconfig | ||||
| #--------------------------------------------------------------- | ||||
| # Конец скрипта | ||||
| #--------------------------------------------------------------- | ||||
							
								
								
									
										10
									
								
								configs/vi.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								configs/vi.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | ||||
| #!/bin/bash | ||||
| #--------------------------------------------------------------- | ||||
| #-Скрипт разработан специально для 4PDA от Foreman (Freize.org)- | ||||
| #-Распространение без ведома автора запрещено!                 - | ||||
| #--------------------------------------------------------------- | ||||
| PROMETHEUS2="5.03"  # Влияет на версию | ||||
| stable=STABLE | ||||
| #--------------------------------------------------------------- | ||||
| # Конец скрипта | ||||
| #--------------------------------------------------------------- | ||||
							
								
								
									
										
											BIN
										
									
								
								files/full-theme-pack-lite.zip
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								files/full-theme-pack-lite.zip
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								files/full-theme-pack.zip
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								files/full-theme-pack.zip
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								files/loki.tar
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								files/loki.tar
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								files/stock_uboot.bin
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								files/stock_uboot.bin
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										1
									
								
								files/stock_uboot.md5
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								files/stock_uboot.md5
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| 617a5830fee121b58e61c9b0557cd77b  stock_uboot.bin | ||||
							
								
								
									
										11
									
								
								modules/a-build.sh.exemple
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								modules/a-build.sh.exemple
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| . ./configs/script.config.sh | ||||
| ################################################################ | ||||
| # Впишите сюда то, что будет выполняться перед сборкой | ||||
| ################################################################ | ||||
							
								
								
									
										11
									
								
								modules/a-quit.sh.exemple
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								modules/a-quit.sh.exemple
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| . ./configs/script.config.sh | ||||
| ################################################################ | ||||
| # Впишите сюда то, что будет выполняться перед выходом из скрипта | ||||
| ################################################################ | ||||
							
								
								
									
										11
									
								
								modules/a-start.sh.exemple
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								modules/a-start.sh.exemple
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| . ./configs/script.config.sh | ||||
| ################################################################ | ||||
| # Впишите сюда то, что будет выполняться сразу после старта скрипта | ||||
| ################################################################ | ||||
							
								
								
									
										11
									
								
								modules/a-update-a.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								modules/a-update-a.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| . ./configs/script.config.sh | ||||
| ################################################################ | ||||
| # Впишите сюда то, что будет выполняться после обновления исходного кода | ||||
| ################################################################ | ||||
							
								
								
									
										11
									
								
								modules/a-update-a.sh.exemple
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								modules/a-update-a.sh.exemple
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| . ./configs/script.config.sh | ||||
| ################################################################ | ||||
| # Впишите сюда то, что будет выполняться после обновления исходного кода | ||||
| ################################################################ | ||||
							
								
								
									
										11
									
								
								modules/a-update-s.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								modules/a-update-s.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| . ./configs/script.config.sh | ||||
| ################################################################ | ||||
| # Впишите сюда то, что будет выполняться перед обновлением исходного кода | ||||
| ################################################################ | ||||
							
								
								
									
										11
									
								
								modules/a-update-s.sh.exemple
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								modules/a-update-s.sh.exemple
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| . ./configs/script.config.sh | ||||
| ################################################################ | ||||
| # Впишите сюда то, что будет выполняться перед обновлением исходного кода | ||||
| ################################################################ | ||||
							
								
								
									
										1
									
								
								padavan-ng
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								padavan-ng
									
									
									
									
									
										Submodule
									
								
							 Submodule padavan-ng added at 56960f9cc3
									
								
							
							
								
								
									
										11
									
								
								patch/busybox.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								patch/busybox.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| --- rt-n56u/trunk/user/busybox/busybox-1.24.x/scripts/kconfig/zconf.hash.c_shipped | ||||
| +++ rt-n56u/trunk/user/busybox/busybox-1.24.x/scripts/kconfig/zconf.hash.c_shipped | ||||
| @@ -156,7 +156,7 @@ static struct kconf_id_strings_t kconf_id_strings_contents = | ||||
|  #ifdef __GNUC__ | ||||
|  __inline | ||||
|  #endif | ||||
| -struct kconf_id * | ||||
| +static struct kconf_id * | ||||
|  kconf_id_lookup (register const char *str, register unsigned int len) | ||||
|  { | ||||
|    enum | ||||
							
								
								
									
										12
									
								
								patch/pci7621.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								patch/pci7621.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| --- rt-n56u/trunk/linux-3.4.x/arch/mips/rt2880/pci.c	2017-12-29 22:27:38.000000000 +0300 | ||||
| +++ rt-n56u/trunk/linux-3.4.x/arch/mips/rt2880/pci.c	2018-01-26 15:10:33.000000000 +0300 | ||||
| @@ -676,6 +676,8 @@ | ||||
|  		bypass_pipe_rst(); | ||||
|  	set_phy_for_ssc(); | ||||
|   | ||||
| +	mdelay(100); | ||||
| + | ||||
|  #if defined (GPIO_PERST) | ||||
|  	val = 0; | ||||
|  #if defined (CONFIG_PCIE_PORT0) | ||||
|  | ||||
							
								
								
									
										447
									
								
								scripts/autoeditor.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										447
									
								
								scripts/autoeditor.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,447 @@ | ||||
| #!/bin/bash | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| RED0='\033[0;31m' | ||||
| GREEN0='\033[0;32m' | ||||
| ssh_port=22 | ||||
| . ./configs/script.config.sh | ||||
| . ./configs/routers/$ROUTERS.sh | ||||
| # Подключаем локализацию | ||||
| . ./scripts/localization.sh | ||||
| #--------------------------------------------------------------- | ||||
| # Подменю начало | ||||
| #--------------------------------------------------------------- | ||||
| function rssh { | ||||
| ### Include "openssl" executable for generate certificates. ~0.4MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    sed -i "s/#CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y/CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
| fi | ||||
| ### Include Elliptic Curves (EC) to openssl library. ~0.1MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    sed -i "s/#CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y/CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
| fi | ||||
| } | ||||
| while : | ||||
| do | ||||
| clear | ||||
| on=ON | ||||
| off=OFF | ||||
| message autoeditor_title | ||||
| ### Проверка | ||||
| ### Include SMB and WINS server. ~1.5MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_SMBD=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 1. SMB and WINS server      [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 1. SMB and WINS server      [1.5 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include NFSv3 server. ~0.6MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_NFSD=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 2. NFSv3 server             [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 2. NFSv3 server             [0.6 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include NFSv3 client. ~0.5MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_NFSC=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 3. NFSv3 client             [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 3. NFSv3 client             [0.5 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include CIFS (SMB) client. ~0.2MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_CIFS=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 4. SMB client               [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 4. SMB client               [0.2 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include "tcpdump" utility. ~0.6MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_TCPDUMP=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 5. TCPDUMP utility          [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 5. TCPDUMP utility          [0.6 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include "parted" utility (allow make GPT partitions). ~0.3MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_PARTED=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 6. PARTED utility           [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 6. PARTED utility           [0.3 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include OpenSSH instead of dropbear. openssl ~1.2MB, openssh ~1.0MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENSSH=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 7. OpenSSH                  [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 7. OpenSSH                  [1.0 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include OpenVPN. IPv6 required. openssl ~1.2MB, openvpn ~0.4MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENVPN=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 8. OpenVPN                  [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 8. OpenVPN                  [0.4 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include sftp-server. openssl ~1.2MB, sftp-server ~0.06MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_SFTP=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 9. SFTP-server              [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 9. SFTP-server              [0.1 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include USB-Audio modules ~0.46MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_AUDIO=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 0. USB-Audio modules        [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 0. USB-Audio modules        [0.5 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include "openssl" executable for generate certificates. ~0.4MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE    OpenSSL                  [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE    OpenSSL                  [0.4 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include Elliptic Curves (EC) to openssl library. ~0.1MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE    Elliptic Curves (EC)     [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE    Elliptic Curves (EC)     [0.1 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| echo -e "$NONE--------------------------------------------------------------------" | ||||
| message autoeditor_bottom1 | ||||
| sleep 1 | ||||
|     cat<<EOF7 | ||||
| EOF7 | ||||
|     read -n1 -s | ||||
|     case "$REPLY" in | ||||
|     "1")  ### Include SMB and WINS server. ~1.5MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_SMBD=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_SMBD=y/#CONFIG_FIRMWARE_INCLUDE_SMBD=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_SMBD=y/CONFIG_FIRMWARE_INCLUDE_SMBD=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "2")  ### Include NFSv3 server. ~0.6MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_NFSD=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_NFSD=y/#CONFIG_FIRMWARE_INCLUDE_NFSD=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_NFSD=y/CONFIG_FIRMWARE_INCLUDE_NFSD=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "3")  ### Include NFSv3 client. ~0.5MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_NFSC=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_NFSC=y/#CONFIG_FIRMWARE_INCLUDE_NFSC=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_NFSC=y/CONFIG_FIRMWARE_INCLUDE_NFSC=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "4")  ### Include CIFS (SMB) client. ~0.2MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_CIFS=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_CIFS=y/#CONFIG_FIRMWARE_INCLUDE_CIFS=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_CIFS=y/CONFIG_FIRMWARE_INCLUDE_CIFS=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "5")  ### Include "tcpdump" utility. ~0.6MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_TCPDUMP=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_TCPDUMP=y/#CONFIG_FIRMWARE_INCLUDE_TCPDUMP=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_TCPDUMP=y/CONFIG_FIRMWARE_INCLUDE_TCPDUMP=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "6")  ### Include "parted" utility (allow make GPT partitions). ~0.3MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_PARTED=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_PARTED=y/#CONFIG_FIRMWARE_INCLUDE_PARTED=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_PARTED=y/CONFIG_FIRMWARE_INCLUDE_PARTED=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "7")  ### Include OpenSSH instead of dropbear. openssl ~1.2MB, openssh ~1.0MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENSSH=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_OPENSSH=y/#CONFIG_FIRMWARE_INCLUDE_OPENSSH=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_OPENSSH=y/CONFIG_FIRMWARE_INCLUDE_OPENSSH=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           rssh ;; | ||||
|     "8")  ### Include OpenVPN. IPv6 required. openssl ~1.2MB, openvpn ~0.4MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENVPN=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_OPENVPN=y/#CONFIG_FIRMWARE_INCLUDE_OPENVPN=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_OPENVPN=y/CONFIG_FIRMWARE_INCLUDE_OPENVPN=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           rssh ;; | ||||
|     "9")  ### Include sftp-server. openssl ~1.2MB, sftp-server ~0.06MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_SFTP=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_SFTP=y/#CONFIG_FIRMWARE_INCLUDE_SFTP=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_SFTP=y/CONFIG_FIRMWARE_INCLUDE_SFTP=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           r-ssh ;; | ||||
|     "0")  ### Include USB-Audio modules ~0.46MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_AUDIO=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_AUDIO=y/#CONFIG_FIRMWARE_INCLUDE_AUDIO=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_AUDIO=y/CONFIG_FIRMWARE_INCLUDE_AUDIO=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           r-ssh ;; | ||||
|     "O")  ### Include "openssl" executable for generate certificates. ~0.4MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y/#CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y/CONFIG_FIRMWARE_INCLUDE_OPENSSL_EXE=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           ### Include Elliptic Curves (EC) to openssl library. ~0.1MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y/#CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y/CONFIG_FIRMWARE_INCLUDE_OPENSSL_EC=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           ### Прочие | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENSSH=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_OPENSSH=y/#CONFIG_FIRMWARE_INCLUDE_OPENSSH=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_ARIA=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_ARIA=y/#CONFIG_FIRMWARE_INCLUDE_ARIA=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_OPENVPN=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_OPENVPN=y/#CONFIG_FIRMWARE_INCLUDE_OPENVPN=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_SFTP=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_SFTP=y/#CONFIG_FIRMWARE_INCLUDE_SFTP=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "W") | ||||
|  | ||||
| #--------------------------------------------------------------- | ||||
| # Подменю второго уровня | ||||
| #--------------------------------------------------------------- | ||||
| while : | ||||
| do | ||||
| clear | ||||
| message autoeditor_title | ||||
| ### Проверка | ||||
| ### Include Transmission torrent. openssl ~1.2MB, transmission ~1.5MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_TRANSMISSION=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 1. Transmission             [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 1. Transmission             [1.5 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include Transmission-Web-Control (advanced WebUI). ~0.8MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_TRANSMISSION_WEB_CONTROL=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 2. Transmission Web         [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 2. Transmission Web         [0.8 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include FTP server. ~0.2MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_FTPD=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 3. FTP server               [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 3. FTP server               [0.2 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include xUPNPd IPTV mediaserver. ~0.3MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_XUPNPD=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 4. xUPNPd IPTV              [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 4. xUPNPd IPTV              [0.3 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include Minidlna UPnP mediaserver. ~1.6MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 5. Minidlna UPnP            [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 5. Minidlna UPnP            [1.6 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include Firefly iTunes mediaserver. ~1.0MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_FIREFLY=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 6. Firefly iTunes           [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 6. Firefly iTunes           [1.0 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include Aria2 download manager. openssl ~1.2MB, aria2 ~3.5MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_ARIA=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 7. Aria2                    [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 7. Aria2                    [3.5 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include Aria2 WEB control. ~0.7MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] && [[ -z $(egrep "#CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "\n### Include Aria2 WEB control\n#CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y" >> ./$DIRC/routers/$ROUTERS.sh | ||||
| fi | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 8. Aria2 WEB control        [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 8. Aria2 WEB control        [0.7 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include alternative L2TP control client RP-L2TP. ~0.1MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_RPL2TP=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] && [[ -z $(egrep "#CONFIG_FIRMWARE_INCLUDE_RPL2TP=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "\n### Include alternative L2TP control client RP-L2TP\n#CONFIG_FIRMWARE_INCLUDE_RPL2TP=y" >> ./$DIRC/routers/$ROUTERS.sh | ||||
| fi | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_RPL2TP=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 9. Alternative RP-L2TP      [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 9. Alternative RP-L2TP      [0.1 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| ### Include ffmpeg 0.11.x instead of 0.6.x for Minidlna and Firefly. ~0.1MB | ||||
| if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
| then | ||||
|    echo -e "$NONE 0. FFmpeg & INSTEAD         [0.0 MB] [$RED0$off$NONE]" | ||||
| else | ||||
|    echo -e "$NONE 0. FFmpeg & INSTEAD         [0.1 MB] [$GREEN0$on$NONE]" | ||||
| fi | ||||
| echo -e "$NONE--------------------------------------------------------------------" | ||||
| message autoeditor_bottom2 | ||||
| sleep 1 | ||||
|     cat<<EOF8 | ||||
| EOF8 | ||||
|     read -n1 -s | ||||
|     case "$REPLY" in | ||||
|     "1")  ### Include Transmission torrent. openssl ~1.2MB, transmission ~1.5MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_TRANSMISSION=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_TRANSMISSION=y/#CONFIG_FIRMWARE_INCLUDE_TRANSMISSION=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_TRANSMISSION=y/CONFIG_FIRMWARE_INCLUDE_TRANSMISSION=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "2")  ### Include Transmission-Web-Control (advanced WebUI). ~0.8MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_TRANSMISSION_WEB_CONTROL=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_TRANSMISSION_WEB_CONTROL=y/#CONFIG_FIRMWARE_INCLUDE_TRANSMISSION_WEB_CONTROL=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_TRANSMISSION_WEB_CONTROL=y/CONFIG_FIRMWARE_INCLUDE_TRANSMISSION_WEB_CONTROL=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "3")  ### Include FTP server. ~0.2MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_FTPD=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_FTPD=y/#CONFIG_FIRMWARE_INCLUDE_FTPD=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_FTPD=y/CONFIG_FIRMWARE_INCLUDE_FTPD=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "4")  ### Include xUPNPd IPTV mediaserver. ~0.3MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_XUPNPD=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_XUPNPD=y/#CONFIG_FIRMWARE_INCLUDE_XUPNPD=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_XUPNPD=y/CONFIG_FIRMWARE_INCLUDE_XUPNPD=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "5")  ### Include Minidlna UPnP mediaserver. ~1.6MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y/#CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y/CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           ### Include ffmpeg 0.11.x instead of 0.6.x for Minidlna and Firefly. ~0.1MB | ||||
|           if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y/CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "6")  ### Include Firefly iTunes mediaserver. ~1.0MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_FIREFLY=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_FIREFLY=y/#CONFIG_FIRMWARE_INCLUDE_FIREFLY=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_FIREFLY=y/CONFIG_FIRMWARE_INCLUDE_FIREFLY=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           ### Include ffmpeg 0.11.x instead of 0.6.x for Minidlna and Firefly. ~0.1MB | ||||
|           if [[ -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y/CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "7")  ### Include Aria2 download manager. openssl ~1.2MB, aria2 ~3.5MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_ARIA=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_ARIA=y/#CONFIG_FIRMWARE_INCLUDE_ARIA=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_ARIA=y/CONFIG_FIRMWARE_INCLUDE_ARIA=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           rssh ;; | ||||
|     "8")  ### Include Aria2 WEB control. ~0.7MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y/#CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y/CONFIG_FIRMWARE_INCLUDE_ARIA_WEB_CONTROL=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           rssh ;; | ||||
|     "9")  ### Include alternative L2TP control client RP-L2TP. ~0.1MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_RPL2TP=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_RPL2TP=y/#CONFIG_FIRMWARE_INCLUDE_RPL2TP=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           else | ||||
|              sed -i "s/#CONFIG_FIRMWARE_INCLUDE_RPL2TP=y/CONFIG_FIRMWARE_INCLUDE_RPL2TP=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           rssh ;; | ||||
|     "0")  ### Include ffmpeg 0.11.x instead of 0.6.x for Minidlna and Firefly. ~0.1MB | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y/#CONFIG_FIRMWARE_INCLUDE_FFMPEG_NEW=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           ### Прочие | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_FIREFLY=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_FIREFLY=y/#CONFIG_FIRMWARE_INCLUDE_FIREFLY=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi | ||||
|           if [[ ! -z $(egrep "^CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y" -o ./$DIRC/routers/$ROUTERS.sh) ]] | ||||
|           then | ||||
|              sed -i "s/CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y/#CONFIG_FIRMWARE_INCLUDE_MINIDLNA=y/" ./$DIRC/routers/$ROUTERS.sh | ||||
|           fi ;; | ||||
|     "W")  break ;; | ||||
|     "F")  message activate_item_with_number_or_return_with_q | ||||
|           sleep 2.5 ;; | ||||
|     "f")  message in_capital_letters_please | ||||
|           sleep 0.3 ;; | ||||
|     "Q")  break ;; | ||||
|     "q")  message in_capital_letters_please | ||||
|           sleep 0.3 ;; | ||||
|      * )  message command_not_found | ||||
|           sleep 0.3 ;; | ||||
|     esac | ||||
| done | ||||
| #--------------------------------------------------------------- | ||||
| # Подменю второго уровня конец | ||||
| #--------------------------------------------------------------- | ||||
|           ;; | ||||
|     "F")  message activate_item_with_number_or_return_with_q | ||||
|           sleep 2.5 ;; | ||||
|     "f")  message in_capital_letters_please | ||||
|           sleep 0.3 ;; | ||||
|     "Q")  break ;; | ||||
|     "q")  message in_capital_letters_please | ||||
|           sleep 0.3 ;; | ||||
|      * )  message command_not_found | ||||
|           sleep 0.3 ;; | ||||
|     esac | ||||
| done | ||||
| #--------------------------------------------------------------- | ||||
| # Подменю Конец | ||||
| #--------------------------------------------------------------- | ||||
							
								
								
									
										156
									
								
								scripts/localization.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										156
									
								
								scripts/localization.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,156 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Script author: Firsthash | ||||
| # Script created: 01.04.2016 | ||||
|  | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||||
| DIRP="$( pwd )" | ||||
| MESSAGES_DIR="$DIRP/scripts/messages" | ||||
| . ./configs/script.config.sh 2> /dev/null | ||||
| ################################################################ | ||||
|  | ||||
| function message() { | ||||
|     msg_id=$1 | ||||
|     localized_msg=`localize $msg_id` | ||||
|  | ||||
|     echo -e "$localized_msg" | ||||
| } | ||||
|  | ||||
| function message_n() { | ||||
|     msg_id=$1 | ||||
|     localized_msg=`localize $msg_id` | ||||
|  | ||||
|     echo -en "$localized_msg" | ||||
| } | ||||
|  | ||||
| function message_red() { | ||||
|     msg_id=$1 | ||||
|     localized_msg=`localize $msg_id` | ||||
|  | ||||
|     echo -e "$RED $localized_msg $NONE" | ||||
| } | ||||
|  | ||||
| function message_green() { | ||||
|     msg_id=$1 | ||||
|     localized_msg=`localize $msg_id` | ||||
|  | ||||
|     echo -e "$GREEN $localized_msg $NONE" | ||||
| } | ||||
|  | ||||
| function message_blue() { | ||||
|     msg_id=$1 | ||||
|     localized_msg=`localize $msg_id` | ||||
|  | ||||
|     echo -e "$BLUE $localized_msg $NONE" | ||||
| } | ||||
|  | ||||
| function message_yellow() { | ||||
|     msg_id=$1 | ||||
|     localized_msg=`localize $msg_id` | ||||
|  | ||||
|     echo -e "$YELLOW $localized_msg $NONE" | ||||
| } | ||||
|  | ||||
| function get_current_language() { | ||||
|     if [ -z "$PROMETHEUS_LANG" ]; then | ||||
|         result="$LANG"  | ||||
|     else | ||||
|         result="$PROMETHEUS_LANG" | ||||
|     fi | ||||
|     echo -n "${result::2}" # first two letters of lang code | ||||
| } | ||||
|  | ||||
| function localize() { | ||||
|     msg_id=$1 | ||||
|  | ||||
|     user_lang=`get_current_language` | ||||
|     user_lang_lower=${user_lang,,} # lang to lowercase | ||||
|  | ||||
|     declare -A dictionary | ||||
|     lang_suffix=en | ||||
|     messages_path_base="$MESSAGES_DIR/messages_" | ||||
|     if [ -f "$messages_path_base$user_lang_lower" ]; then | ||||
|         lang_suffix=$user_lang_lower | ||||
|     fi | ||||
|     . "$messages_path_base$lang_suffix" | ||||
|  | ||||
|     result="${dictionary["$msg_id"]}" | ||||
|     [ -z "$result" ] && result="$msg_id" | ||||
|     echo -n "$result" | ||||
| } | ||||
|  | ||||
| function move_item_to_top() { | ||||
|     list=$1 | ||||
|     router_prefix=$2 | ||||
|     first_part=`echo -e "$list" | grep -i "^$router_prefix"` | ||||
|     test -z $first_part || first_part="$first_part\n"  | ||||
|     second_part=`echo -e "$list" | grep -vi "^$router_prefix"` | ||||
|     result="$first_part$second_part" | ||||
|     echo -e "$result" | ||||
| } | ||||
|  | ||||
| function select_language_dialog() { | ||||
|     clear | ||||
|     pushd "$MESSAGES_DIR" > /dev/null | ||||
|     user_lang=`get_current_language` | ||||
|     user_lang_upper=${user_lang^^} | ||||
|     # list of lang file prefixes | ||||
|     configs_prom=`ls -1r | grep -oP "(?<=^messages_)..$" | sed 's/.*/\U&/'` | ||||
|  | ||||
|     if [[ ! -z $configs_prom ]] | ||||
|     then | ||||
|         while true; do | ||||
|             clear | ||||
|             message list_of_available_languages | ||||
|             I=1 | ||||
|             while read -r line | ||||
|             do  | ||||
|                 selected="" | ||||
|                 [ "$user_lang_upper" == "$line" ] && selected=" *" | ||||
|                 echo -e "$BLUE $I) $GREEN `echo $line | sed 's/\.config$//'`$selected $NONE" | ||||
|                 CONFIGN["$I"]=$line | ||||
|                 I=$(($I + 1)) | ||||
|             done <<<"$configs_prom" | ||||
|             read -p "`message_n please_enter_number_of_desired_language`" yn | ||||
|             if [[ -z ${CONFIGN[$yn]} ]] | ||||
|             then | ||||
|                message please_select_existed_language | ||||
|                sleep 1 | ||||
|             else | ||||
|                message selected_language_is_abc | ||||
|                PROMETHEUS_LANG=`echo "${CONFIGN[$yn]}"` | ||||
|                cd $DIRP | ||||
|                if [[ -z $(egrep "^PROMETHEUS_LANG=*" -o ./$DIRC/script.config.sh) ]] | ||||
|                then | ||||
|                   echo -e "\n# Language\nPROMETHEUS_LANG=" >> ./$DIRC/script.config.sh | ||||
|                fi | ||||
|                sed -i s/PROMETHEUS_LANG=.*/PROMETHEUS_LANG=\"$(echo $PROMETHEUS_LANG | sed 's/\"/\\\\"/g')\"/ ./$DIRC/script.config.sh | ||||
|                break | ||||
|             fi | ||||
|         done | ||||
|         clear | ||||
|         echo -e "$PROMETHEUS" | ||||
|         echo -e "$ST1" | ||||
|         echo -e "$ST2" | ||||
|         message dependencies_ok | ||||
|         echo -e "$ST3" | ||||
|         echo -e "$ST4" | ||||
|         echo -e "$BLUE Config:   $NONE$YELLOW    $PROMETHEUS_LANG $NONE" | ||||
|  | ||||
|         cd $DIRP | ||||
|         exec ./start.sh && exit | ||||
|     else | ||||
|         cd $DIRP | ||||
|         message languages_have_been_lost | ||||
|         sleep 2 | ||||
|         exec ./start.sh && exit | ||||
|     fi | ||||
|  | ||||
|     popd | ||||
| } | ||||
							
								
								
									
										541
									
								
								scripts/messages/messages_en
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										541
									
								
								scripts/messages/messages_en
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,541 @@ | ||||
| dictionary=( | ||||
|     ["padavan_ng_repository_warning"]="\n $RED You have just selected the padavan-ng (linaro) repository.\nSome parts of code in the Linux kernel related to a chip flashing has been rewritten and not carefully tested!\n It's NOT RECOMMENDED to use this repository if your device HAS NO RECOVERY MODE $NONE" | ||||
|     ["select_the_version_of_the_repository"]="$BLUE Please select a repository: $NONE" | ||||
|     ["cleaning_is_launched"]="$BLUE ATTENTION! The source code cleaning is strongly required. " | ||||
|     ["available_patchs"]="$BLUE The following patches are available: $NONE" | ||||
|     ["select_patch"]="Please, select the patch number you want to apply: " | ||||
|     ["patchs_are_absent"]="$RED Patches are missing! The patches are not included in the standard package of the script. You might need to update this module to download actual patches. $NONE" | ||||
|     ["patch_has_been_added"]="$GREEN The patch has been successfully applied. $NONE" | ||||
|     ["mi3_recovery_confirm"]="$RED The router will be rebooted into recovery mode. An USB flash drive with a stock firmware (miwifi.bin) is strongly required. $NONE" | ||||
|     ["please_enter_the_first_mac"]="$BLUE Please enter a primary MAC-address or type "NO" to generate it. (WAN&WLAN2.4)$NONE" | ||||
|     ["please_enter_the_second_mac"]="$BLUE Please enter a secondary MAC-address or type "NO" to generate it. (LAN&WLAN5)$NONE" | ||||
|     ["selected_mac"]="$BLUE The MAC-address is accepted! $NONE" | ||||
|     ["select_existed_mac"]="$RED Please, enter a valid MAC-address. | ||||
| $BLUE For example: DD:AF:E2:01:2A:65$NONE" | ||||
|     ["mac_addresses_selected"]="$BLUE The following MAC-addresses have been selected: | ||||
|  WAN/WLAN 2.4 : $YELLOW$MAC1$BLUE | ||||
|  LAN/WLAN 5   : $YELLOW$MAC2$NONE" | ||||
|     ["addresses_have_changed"]="$RED The MAC addresses have been successfully updated. $NONE" | ||||
|     ["confirm_the_input_addresses"]="$RED Are you sure that you want to update the MAC-address? (y/n) $NONE" | ||||
|     ["you_want_to_delete_config"]="$RED Are you sure that you want to delete the $GREEN$CONFIG_FIRMWARE_PRODUCT_ID$RED config? (y/n) $NONE" | ||||
|     ["i_understand_and_agree"]="$RED Are you sure that you want to flash it anyway? (y/n) $NONE" | ||||
|     ["ids_comparison"]="$BLUE An identification error, please check and validate the following data: | ||||
|  Firmware: $RED$FFM$BLUE | ||||
|  Router:   $RED$rt_hostname$BLUE | ||||
|  Config:   $RED$CONFIG_FIRMWARE_PRODUCT_ID$BLUE | ||||
|  The data may be different from the stock firmware, it is normal behaviour.$NONE" | ||||
|     ["source_code_download_error"]="$RED Source code download error! $NONE" | ||||
|     ["software_installation_error"]="$RED Software installation error! $NONE" | ||||
|     ["incorrect_configuration"]="$RED An error has been occuired. The configuration is incorrect. Terminating the operation... $NONE" | ||||
|     ["tor_patch_not_applied"]="$RED The patch is not applied. Terminating the operation... $NONE" | ||||
|     ["select_mtd"]=" Please enter number of required partition: " | ||||
|     ["available_mtd"]="$BLUE The list of available partition: $NONE" | ||||
|     ["mtd_has_been_selected"]="$GREEN ${MTDS[$yn]} is selected for installing $NONE" | ||||
|     ["insert_usb_flash_drive"]="$RED Please, attach an USB flash drive with a stock firmware (miwifi.bin) in the USB port and shortly press the reset button. $NONE" | ||||
|     ["error_firmware_1"]="$RED Warning! Immediately flash a factory firmware via WEB interface! Do not restart the router! $NONE" | ||||
|     ["entware_mounted"]="$GREEN Entware is successfully mounted! $NONE" | ||||
|     ["error_occured_so_removing_module"]="$RED $error_text...removing the module $NONE" | ||||
|     ["cleaning_router_temp_directory"]="$GREEN Cleaning the router's temp directory... $NONE" | ||||
|     ["copying_entware_from_router_to_firmware"]="$GREEN Copying Entware from the router to a firmware... $NONE" | ||||
|     ["compressing_router_entware"]="$GREEN Compressing the router's entware... $NONE" | ||||
|     ["cant_get_access_to_the_router"]="Can't get access to the router" | ||||
|     ["testing_router_connection"]="$GREEN Checking the connection to the router... $NONE" | ||||
|     ["router_access_params_is_abc"]="$BLUE The router access parameters is: user=$ROOTWRT, pass=$PWDR, ip=$IPWRT $NONE" | ||||
|     ["removing_entware_patch"]="$GREEN Removing Entware patch... $NONE" | ||||
|     ["applying_entware_patch"]="$GREEN Applying Entware patch... $NONE" | ||||
|     ["paragon_ntfs_driver_has_been_added"]="$BLUE The Paragon NTFS driver is successfully applied... $NONE" | ||||
|     ["cleaning_sources"]="$BLUE Cleaning the sources... $NONE" | ||||
|     ["do_you_want_to_clean_up"]=" Are you sure that you want to cleanup the sources? (y/n) " | ||||
|     ["cleaning_module_is_launched"]="$BLUE The cleaning is started! $RED" | ||||
|     ["resetting_module_settings"]="$BLUE Resetting the module settings... $NONE" | ||||
|     ["adding_module_to_config_ok"]="$BLUE Adding the module to config$GREEN OK $NONE" | ||||
|     ["removing_module_from_config_ok"]="$BLUE Removing the module from config$GREEN OK $NONE" | ||||
|     ["tor_privoxy_patch_has_been_removed"]="$GREEN TOR&PRIVOXY&DNSCRYPT patch is removed! $NONE" | ||||
|     ["moving_module_patch"]="$BLUE Moving the module patch... $NONE" | ||||
|     ["adding_module_update_fix"]="$BLUE Adding the module update fix... $NONE" | ||||
|     ["applying_tor_privoxy_patch"]="$BLUE Applying TOR&PRIVOXY&DNSCRYPT patch... $NONE" | ||||
|     ["please_before_module_deletion_update_sources"]="$BLUE Please update the sources before removing of the module! $NONE" | ||||
|     ["module_has_been_deactivated"]="$GREEN The module is disabled! $NONE" | ||||
|     ["preparing_module_patch"]="$BLUE Preparing the module patch... $NONE" | ||||
|     ["module_operation_canceled"]="$GREEN Cancelling... $NONE" | ||||
|     ["module_already_installed_do_you_want_to_remove"]="$RED The module is already installed. Are you sure that you want to remove it? (y/n)  $NONE" | ||||
|     ["do_you_want_to_install_module"]="$RED Are you sure that you want to install this modulе? (y/n)  $NONE" | ||||
|     ["languages_have_been_lost"]="$RED Ooops! There is no any language to select... $NONE" | ||||
|     ["selected_language_is_abc"]="$RED Interface languages: ${CONFIGN[$yn]} $NONE" | ||||
|     ["please_select_existed_language"]="$RED Please select an existing item $NONE" | ||||
|     ["cancel_archive_backup"]="$BLUE Q) Cancel $NONE" | ||||
|     ["cleaning_update"]="$BLUE Cleaning the update... $NONE" | ||||
|     ["decompressing_update"]="$BLUE Decompressing the update... $NONE" | ||||
|     ["downloading_update"]="$BLUE Downloading the update... $NONE" | ||||
|     ["activate_item_with_number_or_return_with_q"]="$YELLOW Enter item number to enable/disable it or return back with Q key.$NONE" | ||||
|     ["you_can_build_uboot_only_on_x86_machine"]="$YELLOW Please, note that building of U-Boot is allowed on х86-machines only.$NONE" | ||||
|     ["archive_file_is_absent_please_update_script"]="$RED An archive file is absent, please update the script$NONE" | ||||
|     ["archive_file_is_corrupted_please_update_script"]="$RED The archive file is damaged, please update the script$NONE" | ||||
|     ["changes_will_be_applied_after_reboot"]="$BLUE All changes will be applied after reboot ... $NONE" | ||||
|     ["action_has_been_canceled_because_of_copy_error"]="$RED The action is cancelled due to the copying error. Please try again. $NONE" | ||||
|     ["do_you_want_to_flash_stock_uboot"]=" Are you sure that you want to flash a stock U-Boot? (y/n) " | ||||
|     ["uboot_isnt_found"]="$RED U-Boot is not found! $NONE" | ||||
|     ["your_uboot_has_actual_version"]="$GREEN The U-Boot is already up-to-date! $NONE" | ||||
|     ["update_canceled"]="$BLUE The update is canceled. $NONE" | ||||
|     ["dont_reboot_your_router_if_you_have_stock_firmware"]="$BLUE Please, do not reboot the router if it still has the stock firmware... $NONE $BLUE" | ||||
|     ["dont_reboot_your_router_until_bootloader_will_be_flashed_successfully"]="$RED DO NOT REBOOT$BLUE the router until U-Boot will be successfully flashed!!! $NONE" | ||||
|     ["newer_bootloader_with_version_abc_has_been_found"]="$RED Newer bootloader is detected: $uboot_new_version $NONE $BLUE" | ||||
|     ["current_bootloader_version_is_abc"]="$BLUE Current bootloader version is $uboot_old_version $NONE" | ||||
|     ["preparing_uboot"]="$BLUE Preparing U-Boot... $NONE" | ||||
|     ["do_you_want_to_flash_uboot"]=" Are you sure that you want to flash U-Boot? (y/n) " | ||||
|     ["uboot_has_been_uploaded_to_the_router"]="$BLUE The uboot.bin file is successfully uploaded to the router... $NONE" | ||||
|     ["uboot_assembled"]="$GREEN U-Boot is assembled! $NONE" | ||||
|     ["configs_have_been_lost"]="$RED Ooops! Configuration files are lost... $NONE" | ||||
|     ["dumping_partition_to_path_abc"]="$BLUE Dumping /dev/$mtd to $SNAPSHOT  $NONE" | ||||
|     ["sources_have_been_patched"]="$BLUE Patch,$NONE$GREEN OK $NONE" | ||||
|     ["please_try_again"]="$BLUE Please try again $NONE" | ||||
|     ["unfortunately_something_goes_wrong"]="$RED Unfortunately something goes wrong $NONE" | ||||
|     ["access_parameters_for_ssh_are_abc"]="$BLUE SSH access parameters:  $RED IP: $GREEN$IP   $RED username:$GREEN root   $RED password: $GREEN$password $NONE" | ||||
|     ["congratulations_you_have_obtained_ssh_access"]="$GREEN Congratulations!!! ${BLUE} SSH-access is successfully obtained$NONE" | ||||
|     ["checking_ssh_access"]="$BLUE Checking SSH-access availability$NONE" | ||||
|     ["launching_ssh"]="$BLUE Starting SSH $NONE" | ||||
|     ["telnet_has_been_launched"]="$GREEN Telnet is started $NONE" | ||||
|     ["launch_error_is_abc"]="$RED Launch error: $BLUE$result$NONE" | ||||
|     ["launching_telnet_on_router"]="$BLUE Starting telnet on the router $NONE" | ||||
|     ["your_ssh_telnet_password_is_abc"]="$BLUE Your ssh/telnet password is $GREEN$password$NONE" | ||||
|     ["founded_router_version_is_abc"]="$BLUE The following router is found: $GREEN$platform $BLUE($version $revision) SN=$GREEN$serial $BLUE($memory) $NONE" | ||||
|     ["checkpoint_has_been_created"]="$NONE$GREEN The checkpoint is saved $NONE" | ||||
|     ["do_you_want_to_create_current_state_checkpoint"]=" Are you sure that you want to save a checkpoint with current state? (y/n) " | ||||
|     ["backup_has_been_saved_to_selected_directory"]="$GREEN Backup is saved to MTD_BACKUP_$CONFIG_FIRMWARE_PRODUCT_ID/$SNAPSHOT $NONE$RED" | ||||
|     ["something_goes_wrong_unable_to_create_backup"]="$RED Something goes wrong, unable to save backup! $NONE" | ||||
|     ["preparing_partitions_backup"]="$BLUE Preparing the partitions backup... $NONE" | ||||
|     ["do_you_want_create_backup_of_all_partitions"]=" Are you sure that you want to backup all partitions? (y/n) " | ||||
|     ["checking_eeprom"]="$BLUE Checking EEPROM... $NONE" | ||||
|     ["eeprom_already_has_been_patched_there_is_no_need_to_do_it_again"]="$GREEN The EEPROM is already patched! There is no any reason to do it again. $NONE" | ||||
|     ["keeping_eeprom_in_its_original_state"]="$BLUE The EEPROM is kept unchanged... $NONE" | ||||
|     ["uploading_eeprom"]="$BLUE Uploading the EEPROM... $NONE" | ||||
|     ["do_you_want_to_flash_eeprom"]=" Are you sure that you want to flash the EEPROM? (y/n) " | ||||
|     ["do_you_want_to_do_it_now"]="$BLUE" | ||||
|     ["stock_eeprom_has_been_found_its_recommended_apply_patch"]="$RED Stock EEPROM was detected, it is strongly recommended to apply the patch!  $NONE" | ||||
|     ["file_doesnt_exist_or_empty"]="$RED The file does not exist or empty!!! $NONE" | ||||
|     ["in_every_unknown_situation_press_3"]="$YELLOW If you are unsure of your actions press 3.$NONE" | ||||
|     ["in_every_unknown_situation_press_1"]="$YELLOW If you are unsure of your actions press 1.$NONE" | ||||
|     ["something_has_been_deleted"]="$YELLOW The archive is cleaned. $NONE" | ||||
|     ["action_has_been_canceled"]="$BLUE The action is canceled. $NONE" | ||||
|     ["router_has_been_flashed_successfully"]="$GREEN The router is successfully flashed... $NONE $BLUE" | ||||
|     ["flashing_firmware"]="$BLUE Flashing... $NONE" | ||||
|     ["detecting_partition"]="$BLUE Detecting partition... $NONE" | ||||
|     ["checking_checksum"]="$BLUE Checking checksum... $NONE" | ||||
|     ["error_occured_during_firmware_uploading"]="$RED An error occured during the firmware uploading... $NONE" | ||||
|     ["rebooting_router_wait_20_seconds"]="$BLUE Rebooting the router, please wait 20 seconds... $NONE" | ||||
|     ["rebooting_router_wait_50_seconds"]="$BLUE Rebooting the router, please wait 50 seconds... $NONE" | ||||
|     ["unsupported_router"]="$RED Unsupported router! $NONE" | ||||
|     ["do_you_want_reboot_router"]=" Are you sure that you want to reboot the router? (y/n) " | ||||
|     ["flashing_completed"]="$BLUE Flashing completed... $NONE" | ||||
|     ["resetting_sources_to_initial_state"]="$BLUE Resettings the sources to the initial state... $NONE" | ||||
|     ["do_you_want_restore_sources"]=" Are you sure that you want to restore the sources? (y/n) " | ||||
|     ["looks_like_error_happened_in_middle_of_compilation"]="$BLUE An error occured during the compilation process! $NONE" | ||||
|     ["your_firmware_fits_allowed_size"]="$GREEN File size of $FFM is $firmware_size bytes. The file size completely corresponds to the maximum allowed size of $max_allowed_size bytes $NONE" | ||||
|     ["your_firmware_exceeds_allowed_size"]="$RED WARNING! Size of $FFM is $firmware_size bytes. The file size DOES NOT corresponds to the maximum allowed size of $max_allowed_size bytes $NONE" | ||||
|     ["building_firmware"]="$BLUE Building firmware... $NONE" | ||||
|     ["do_you_want_try_fast_build"]=" Are you sure that you want to try quick build (might lead to errors) or quit? (y/n/q) " | ||||
|     ["fast_build_available_only_for_same_source_version"]="$BLUE Quick build is available for the same source version only.$NONE $RED" | ||||
|     ["you_already_have_build_this_firmware"]="$BLUE The firmware was already built. $NONE" | ||||
|     ["modules_are_absent"]="$RED Modules are absent! $NONE" | ||||
|     ["module_has_been_selected"]="$GREEN ${MODS[$yn]} is selected for installing $NONE" | ||||
|     ["selected_module_doesnt_support_updates"]="$RED $line does not support updates. $NONE" | ||||
|     ["getting_update_for_selected_module"]="$BLUE Getting update for $line ... $NONE" | ||||
|     ["go_backward_key"]="$BLUE Q)  Quit $NONE" | ||||
|     ["update_modules_key"]="$BLUE U)  Update $NONE" | ||||
|     ["script_will_be_restarted"]="$RED Script will be restarted. $NONE" | ||||
|     ["ssh_connection_cant_be_established"]="$RED SSH connection can not be established! $NONE" | ||||
|     ["uploading_storage"]="$BLUE Uploading Storage... $NONE" | ||||
|     ["uploading_firmware"]="$BLUE Uploading Firmware... $NONE" | ||||
|     ["uploading_factory"]="$BLUE Uploading Factory... $NONE" | ||||
|     ["flashing_backup"]="$BLUE Flashing... $NONE" | ||||
|     ["done_now_you_must_reboot_your_router_manually"]="$BLUE Done! It is strongly recommended to reboot the router immediately... $NONE" | ||||
|     ["should_not_reboot_your_router_until_uboot_flashed_successfully"]="$RED ATTENTION! Don't reboot the router until u-boot will be successfully flashed! $NONE" | ||||
|     ["script_is_stopping_because_of_possibility_router_brick"]="$RED The script is stopping due to possibility of the router damage! $NONE" | ||||
|     ["uploading_uboot"]="$BLUE Uploading U-Boot... $NONE" | ||||
|     ["uploading_bootenv"]="$BLUE Uploading BootEnv... $NONE" | ||||
|     ["preparing_bootenv"]="$BLUE Preparing BootEnv... $NONE" | ||||
|     ["do_you_want_restore_uboot_from_backup_or_remain_one_unchanged"]=" Are you sure that you want to restore U-Boot from the backup (Y), or leave it unchanged (N) " | ||||
|     ["do_you_want_restore_firmware_using_selected_file"]=" Are you sure that you want to restore firmware using file ${BACKUP[$I]}? " | ||||
|     ["please_enter_existed_backup"]="$RED Please enter the existing backup. $NONE" | ||||
|     ["restore_backup_canceled"]="$BLUE Cancel... $NONE" | ||||
|     ["select_backup_that_you_want_to_flash"]=" Select a backup that you would like to flash " | ||||
|     ["restore_backup_quit"]="$BLUE Q) Cancel $NONE" | ||||
|     ["this_script_works_only_with_xrmwrt_firmware"]="$BLUE This script operates with XRMWRT firmware only $NONE" | ||||
|     ["backups_not_found"]="$RED Backups not found... $NONE" | ||||
|     ["starting_tftp_server_enter_password"]="$YELLOW Starting TFTP server, you have to enter password from $NONE" | ||||
|     ["firmware_size_cant_exceed_n_bytes"]="$YELLOW Firmware size must correspond to the maximum size of $RED $mtd_max_size $YELLOW bytes $NONE" | ||||
|     ["please_enter_yes_or_no"]="Please enter 'yes' or 'no'" | ||||
|     ["do_you_want_flash_anyway"]=" Are you sure that you want to flash anyway? (y/n) " | ||||
|     ["router_flashed_with_exactly_same_build"]="$RED The router is already flashed with exactly same build $FFM... $NONE $BLUE" | ||||
|     ["you_dont_have_firmware"]="$BLUE There is no any firmware found, at least one should be built first. $NONE" | ||||
|     ["enter_existing_file"]="$RED Please, enter the existing file number only $NONE" | ||||
|     ["canceling"]="$BLUE Canceled... $NONE" | ||||
|     ["select_build_that_you_want_to_flash"]="Please, select a build you want to flash: " | ||||
|     ["creating_directories"]="$BLUE Creating directories... $NONE" | ||||
|     ["better_use_stable_build"]="$YELLOW If unsure, use a stable version of the script.$NONE" | ||||
|     ["remote_server_doesnt_respond"]="$RED The remote server is not responding, further work is not possible! $NONE" | ||||
|     ["server_connection_is_slow"]="The connection with the server is too slow" | ||||
|     ["checking_connection"]="$BLUE Checking connection... $NONE" | ||||
|     ["command_not_found"]="$RED The command is not found! $NONE" | ||||
|     ["in_capital_letters_please"]="$YELLOW Uppercase letters are allowed only! $NONE" | ||||
|     ["enter_router_password"]="$BLUE  Enter router's password: $NONE" | ||||
|     ["enter_router_login"]="$BLUE  Enter router's login: $NONE" | ||||
|     ["router_ip_examples"]="$BLUE  For example: 192.168.1.1 or freize.net:22 $NONE" | ||||
|     ["enter_router_ip2"]="$BLUE  Enter router's IP-address: $NONE" | ||||
|     ["enter_data"]="$BLUE  Enter data: $NONE" | ||||
|     ["trying_again"]="$BLUE Trying once again... $NONE" | ||||
|     ["telnet_access_has_been_granted"]="$BLUE TELNET access is granted... $NONE" | ||||
|     ["ssh_access_has_been_granted"]="$BLUE SSH access is granted... $NONE" | ||||
|     ["ssh_access_error"]="$RED SSH access error, check again... $NONE" | ||||
|     ["obtained_telnet_connection"]="$BLUE Telnet connection is established $NONE" | ||||
|     ["connected_to_devicex"]="$YELLOW Connected to $deviceX $NONE" | ||||
|     ["connected_to_unknown_device_running_openwrt"]="$YELLOW Connected to unknown device that running OpenWrt $NONE" | ||||
|     ["connected_to_config_firmware_product_id"]="$YELLOW Connected to $CONFIG_FIRMWARE_PRODUCT_ID $NONE" | ||||
|     ["connected_to_mi_mini"]="$GREEN Connected to MI router$NONE" | ||||
|     ["login_n_pass_couldnt_be_empty"]="$RED Login and password can not be empty! $NONE" | ||||
|     ["you_entered_wrong_routerip_or_one_not_connected"]="$RED Probably entered IP-address is incorrect or the router is not properly connected $NONE" | ||||
|     ["maybe_ssh_connection_forbidden"]="$RED Probably SSH-connection is forbidden, check the router settings! $NONE" | ||||
|     ["invalid_login_or_password"]="$RED Login or password is invalid! $NONE" | ||||
|     ["connection_settings"]="$BLUE Connection parameters: $NONE" | ||||
|     ["sources_error2"]="$BLUE Sources:$NONE$RED ERROR $NONE" | ||||
|     ["sources_error"]="$BLUE Sources,$NONE$RED ERROR $NONE" | ||||
|     ["checking_loaded_files"]="$BLUE Checking loaded files... $NONE" | ||||
|     ["loading_sources"]="$BLUE Loading sources... $NONE" | ||||
|     ["you_want_to_continue"]=" Continue? (y/n) " | ||||
|     ["unrecognized_router"]="$RED Unrecognized version of the router $GREEN$platform $BLUE($version $revision) SN=$GREEN$serial $BLUE($memory) $NONE" | ||||
|     ["getting_router_info"]="$BLUE Gathering information about the router $NONE" | ||||
|     ["init_router"]="$BLUE Initializing the router (can take up to 30 sec) $NONE" | ||||
|     ["wrong_pass_or_ipaddr"]="$RED Probably the password or IP-address is incorrect $NONE" | ||||
|     ["logging_to_webui"]="$BLUE Logging into webui $NONE" | ||||
|     ["enter_pass_from_linux_account"]="$YELLOW Please, enter a password from your Linux account. $NONE" | ||||
|     ["no_connection_with_router"]="$RED The connection to the router can not be established $NONE" | ||||
|     ["connecting_to_router"]="$BLUE Connecting to the router address $IP $NONE" | ||||
|     ["bad_pass"]="$RED The password is incorrect. $NONE" | ||||
|     ["webui_pass"]="$BLUE A password from WebUI: $NONE" | ||||
|     ["enter_router_ip"]="$BLUE Please, enter the router's IP address (default - 192.168.31.1): $NONE" | ||||
|     ["you_want_to_continue_task"]=" Are sure you that you want to continue? (y/n) " | ||||
|     ["source_code_patch_is_good"]="$GREEN Source patch is valid, build is safe. $NONE" | ||||
|     ["source_code_patch_is_bad"]="$RED Patch for the sources IS NOT VALID, building can lead to errors! " | ||||
|     ["dont_ask_questions_without_logs"]="$RED Please copy the logs and then ask questions on 4pda! $NONE" | ||||
|     ["toolchain_error"]="$BLUE The toolchain build is finished with errors! $NONE" | ||||
|     ["building_toolchain"]="$BLUE Building the toolchain... $NONE" | ||||
|     ["enter_yes_no"]=" Please enter 'yes' or 'no'" | ||||
|     ["toolchain_build_canceled"]="$BLUE The toolchain build is aborted! $NONE" | ||||
|     ["toolchain_build_started"]="$BLUE The toolchain build is started... $NONE" | ||||
|     ["rebuild_toolchain"]=" Rebuild the toolchain? " | ||||
|     ["checking_installed_themes"]="$BLUE Checking the installed themes... $NONE" | ||||
|     ["updating_skins"]="$BLUE Updating and applying the themes... $NONE" | ||||
|     ["updating_source_code"]="$BLUE Updating sources... $NONE" | ||||
|     ["revert_classic_skin"]="$BLUE Restoring the original theme... $NONE" | ||||
|     ["skins_found"]="$BLUE Installed themes are detected $NONE" | ||||
|     ["ssh_access_established"]="$YELLOW SSH access is established... $NONE" | ||||
|     ["ssh_access_not_established"]="$YELLOW SSH access is not established, the script is finished. $NONE" | ||||
|     ["rebooting_router"]="$YELLOW Rebooting the router and finishing the script! $NONE" | ||||
|     ["press_to_proceed"]="$RED Press any key to continue... $NONE" | ||||
|     ["skins_screen_select_item"]="${BLUE}Please enter number of required menu item: $NONE" | ||||
|     ["white_theme_off"]="$NONE 6. White theme              [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["white_theme_on"]="$NONE 6. White theme              [0.2 MB] [$GREEN0$on$NONE]" | ||||
|     ["yellow_theme_off"]="$NONE 5. Yellow theme             [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["yellow_theme_on"]="$NONE 5. Yellow theme             [0.2 MB] [$GREEN0$on$NONE]" | ||||
|     ["dark_blue_theme_off"]="$NONE 4. Dark-blue theme          [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["dark_blue_theme_on"]="$NONE 4. Dark-blue theme          [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["blue_theme_off"]="$NONE 3. Blue theme               [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["blue_theme_on"]="$NONE 3. Blue theme               [0.4 MB] [$GREEN0$on$NONE]" | ||||
|     ["grey_theme_vector_off"]="$NONE 2. Dark-grey theme (vector) [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["grey_theme_vector_on"]="$NONE 2. Dark-grey theme (vector) [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["grey_theme_off"]="$NONE 1. Dark-grey theme          [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["grey_theme_on"]="$NONE 1. Dark-grey theme          [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["skins_core_off"]="$NONE 0. Skins core               [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["skins_core_on"]="$NONE 0. Skins core               [0.4 MB] [$GREEN0$on$NONE]" | ||||
|     ["available_skins"]="$BLUE The list of available skins: $NONE" | ||||
|     ["select_module"]=" Please enter number of required module: " | ||||
|     ["available_modules"]="$BLUE The list of available modules: $NONE" | ||||
|     ["skin_full_tp2"]="$BLUE Skin:    $NONE $YELLOW    FULL-TP $NONE" | ||||
|     ["skin_full_tp"]="$BLUE Skin:$NONE$YELLOW FULL-TP$NONE" | ||||
|     ["skin_original2"]="$BLUE Skin:    $NONE $GREEN    ORIGINAL $NONE" | ||||
|     ["skin_original"]="$BLUE Skin:$NONE$GREEN ORIGINAL$NONE" | ||||
|     ["skin_lite_tp2"]="$BLUE Skin:    $NONE $YELLOW    LITE-TP $NONE" | ||||
|     ["skin_lite_tp"]="$BLUE Skin:$NONE$YELLOW LITE-TP$NONE" | ||||
|     ["installing_software"]="$YELLOW Installing software, please enter password of $NONE" | ||||
|     ["from_your_linux_account"]="$YELLOW your Linux account. $NONE" | ||||
|     ["selected_config"]="$RED Selected ${CONFIGN[$yn]} $NONE" | ||||
|     ["select_existed_config"]="$RED Please select the existing config: $NONE" | ||||
|     ["select_config"]=" Enter required config number: " | ||||
|     ["configs_to_choose"]="$BLUE The list of available router configs: $NONE" | ||||
|     ["xrmwrt_patch_ok"]="$BLUE XRMWRT Patch:$NONE$GREEN OK $NONE" | ||||
|     ["source_code_not_found"]="$BLUE Sources:$NONE$YELLOW     NOT FOUND $NONE" | ||||
|     ["source_code_ok"]="$BLUE Sources:$NONE$YELLOW      $GITCOMMIT $NONE" | ||||
|     ["directories_not_found"]="$BLUE Directories:$NONE$YELLOW     NOT FOUND $NONE" | ||||
|     ["directories_ok"]="$BLUE Directories:$NONE$GREEN  OK $NONE" | ||||
|     ["dependencies_ok"]="$BLUE Dependencies:$NONE$GREEN OK$NONE" | ||||
|     ["no_internet_connection"]="$RED No internet connection is found. Further work is not possible! $NONE" | ||||
|     ["config_ok"]="$BLUE Config:$NONE$GREEN       OK $NONE" | ||||
|     ["slow_connection"]="Internet connection is too slow" | ||||
|     ["scripts_ok"]="$BLUE Scripts:$NONE$GREEN      OK $NONE" | ||||
|     ["editor_warning_msg"]="$RED Please, note that to disable a parameter, put # (hash sign) at the begining of a line and vice versa...$NONE" | ||||
|     ["autoeditor_bottom2"]="$NONE (F)AQ 		Follo(W)ing page 	(Q)uit $NONE\n\n${BLUE} Please enter number of required menu item: $NONE" | ||||
|     ["autoeditor_bottom1"]="$NONE (F)AQ		Follo(W)ing page 	(O)penSSL	(Q)uit $NONE\n\n${BLUE} Please enter number of required menu item: $NONE" | ||||
|     ["autoeditor_title"]="$BLUE List of available config parameters:$NONE\n-------------------------------------------------------------------------------" | ||||
|     ["faq_screen_menu3"]="$YELLOW Restore all changes     (S) - restores a stock backup.$NONE" | ||||
|     ["faq_screen_menu2"]="$YELLOW Flash EEPROM patch      (6) - applies once only.$NONE" | ||||
|     ["please_enter_number_of_desired_language"]="$NONE-------------------------------------------------------------------------------$RED | ||||
|  Please enter number of required menu item: " | ||||
|     ["list_of_available_languages"]="$BLUE The list of available interface languages: $NONE | ||||
| $NONE-------------------------------------------------------------------------------" | ||||
|     ["entware_module_header"]="$BLUE This module adds ability to start your Entware without an external storage. $NONE | ||||
| $BLUE The module requires a properly connected router with Entware installed. $NONE | ||||
| $RED Firmware compression ratio is 5. | ||||
|  e.g. 30Mb of Entware will increase the firmware up to 6Mb. $NONE" | ||||
|     ["tor_privoxy_module_header"]="$BLUE This module adds TOR&PRIVOXY&DNSCRYPT into source codes. $NONE | ||||
| $RED Please, pay attention that this module requires a custom version of source codes! | ||||
|  If you apply the module the source codes will be downgraded | ||||
|  to the custom version of source codes! $NONE | ||||
| $BLUE After installtion you can select what software you want to include by editing config file. $NONE" | ||||
|     ["you_dont_have_to_change_opened_file"]="$RED You do not have to change opened file. | ||||
|  define - enabled, undef - disabled.$NONE" | ||||
|     ["router_will_be_available_on_next_address_dont_forget_turn_on_ssh"]="$BLUE The router will be accessible (after reboot) at 192.168.1.1 address , | ||||
|  Login is 'admin'; Password is 'admin'; WiFi network SSID is 'ASUS'; | ||||
|  WiFi default password is '1234567890'. | ||||
|  Please, do not forget to enable SSH access for the further firmware upgrades. | ||||
|  Note, previous router settings are not changed... $NONE" | ||||
|     ["uboot_screen_menu_other_routers"]="  Please enter number of required menu item: | ||||
|   Flash/Update U-Boot          (1) | ||||
|   Build U-Boot from sources    (2) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["uboot_screen_menu_mi_mini"]="  Please enter number of required menu item: | ||||
|   Flash/Update U-Boot          (1) | ||||
|   Build U-Boot from sources    (2) | ||||
|   Restore stock U-Boot         (3) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["uboot_screen_menu_mi_3"]="  Please enter number of required menu item: | ||||
|   Flash/Update U-Boot          (1) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["your_firmware_destroyed_in_safety_precautions"]="$RED The firmware is destroyed in safety reasons! | ||||
|  Change configuration and build it again.$NONE" | ||||
|     ["restore_backup_warning"]="$RED Warning! $NONE | ||||
| $BLUE If something goes wrong, do not reboot the router and flash it again until success. $NONE | ||||
| $BLUE After rollback all router settings will be restored to the state when backup is created. $NONE | ||||
|  | ||||
| " | ||||
|     ["faq_screen_menu"]="$YELLOW Plese, select required item. If you do not know what to do, select | ||||
|  each item, from the top to the bottom. You make it on your own risk... | ||||
|  | ||||
|  Update the scripts      (1) - updates the script. | ||||
|  Update the sources      (2) - updates the source codes, do it before 3-rd and 4-th point. | ||||
|  Build toolchain         (3) - uses to build a toolchain, changes very rarely. | ||||
|  Flash a firmware        (4) - uploads a firmware to the router. | ||||
|  U-Boot                  (5) - flashes a router boot sector.$NONE" | ||||
|     ["firmware_uploaded_into_router_do_flashing"]="$BLUE Firmware is uploaded to the router... $NONE | ||||
| $BLUE Flashing... $NONE" | ||||
|     ["enable_ssh_and_enter_data_from_xiaomi_site_or_xrmwrt_webui"]="$YELLOW For stock firmware get data from xiaomi site, for xrmwrt | ||||
|  get login and password from WebUI, also remember it | ||||
|  SSH access must be enabled in WebUI. $NONE" | ||||
|     ["connection_screen_menu"]="------------------------------------------------------------------------------- | ||||
|  Are above-mentioned parameters correct? | ||||
|  Enter an answer: | ||||
|  The parameters are correct 	(1) | ||||
|  Update the parameters     	(2) | ||||
|                  		(F)AQ | ||||
|                  		(Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["update_prometheus_menu"]="------------------------------------------------------------------------------- | ||||
|   Please enter number of required menu item: | ||||
|   Update the script to a stable version 	(1) | ||||
|   Update the script to a test version       	(2) | ||||
|   Update a patch only                           (3) | ||||
|                                  		(F)AQ | ||||
|                                  		(Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   Please enter number of required menu item: | ||||
|   Auto-editor                  		(1) | ||||
|   Edit config in a notepad     		(2) | ||||
|   Reset all changes            		(3) | ||||
|                                		(F)AQ | ||||
|                                		(Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_wt3020"]="------------------------------------------------------------------------------- | ||||
|   Please enter number of required menu item: | ||||
|   Auto-editor                  		(1) | ||||
|   Edit config in a notepad    		(2) | ||||
|   Reset all changes            		(3) | ||||
|   Replace 'Reset' button with 'WPS'	(4) [ Can be changed in WebUI ] | ||||
|                                		(F)AQ | ||||
|                                		(Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   Please enter number of required menu item: | ||||
|   Auto-editor                  		(1) | ||||
|   Edit config in a notepad     		(2) | ||||
|   Reset all changes            		(3) | ||||
|   Replace 'Reset' button with 'WPS'	(4) [ Can be changed in WebUI ] | ||||
|   Enable RED LED for WAN       		(5) [ Can be changed in WebUI ] | ||||
|                                		(F)AQ | ||||
|                                		(Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["firmware_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   Please enter number of required menu item: | ||||
|   Change build config          		(1) | ||||
|   Apply skins                  		(2) | ||||
|   Build a firmware            		(3) | ||||
|   Flash a firmware             		(4) | ||||
|   Select a firmware from the archive 	(5) | ||||
|   Cleanup the firmware archive 		(6) | ||||
|                                		(F)AQ | ||||
|                                		(Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["firmware_screen_menu_mi_3"]="------------------------------------------------------------------------------- | ||||
|   Please enter number of required menu item: | ||||
|   Change build config          		(1) | ||||
|   Apply skins                  		(2) | ||||
|   Build a firmware            		(3) | ||||
|   Flash a firmware             		(4) | ||||
|   Select a firmware from the archive 	(5) | ||||
|   Cleanup the firmware archive 		(6) | ||||
|   Format RWFS                           (7) | ||||
|                                		(F)AQ | ||||
|                                		(Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["settings_screen_menu"]=" | ||||
| $BLUE  Script authors: Freize, Yadoff, Firsthash. | ||||
|   English translaton: NEt_Browser | ||||
|   Contacts: is@freize.net | ||||
|   Site: http://prometheus.freize.net/ $NONE | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
|   Please enter number of required menu item: | ||||
|   Change router configuration  (1) | ||||
|   Delete config                (2) | ||||
|   Modules                      (3) | ||||
|   Language                     (4) | ||||
|   SSH Settings                 (5) | ||||
|   Select a repository          (6) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["prometheus_header"]="-------------------------------------------------------------------------------$BLUE | ||||
|   $NONE$GREEN                               PROMETHEUS $NONE$BLUE | ||||
|   $NONE$RED                       Script version: $PROMETHEUS2$PROMETHEUS3 $stable $NONE$BLUE | ||||
|   Prometheus is the script for maintaining and upgrading a router firmware. | ||||
|   Router config: $GREEN$CONFIG_FIRMWARE_PRODUCT_ID$BLUE SN: $YELLOW$SSHTOK$BLUE GIT$GITOK$YELLOW$GITCOMMIT$BLUE | ||||
|  $ST52$FIRM$SKIN$NONE | ||||
| " | ||||
|     ["main_screen_menu_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   Please enter number or letter of required menu item | ||||
|   Initial operations: | ||||
|     Update scripts               (1) | ||||
|     Update sources               (2) | ||||
|     Build toolchain              (3) | ||||
|   Final operations: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ ATTENTION! Router might be damaged! ] | ||||
|     EEPROM                       (6)  [          Applies once only          ] | ||||
|   Miscellaneous: | ||||
|     Script settings              (S)ettings | ||||
|     Restore backup              s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   Please enter number or letter of required menu item | ||||
|   Initial operations: | ||||
|     SSH-hack of stock firmware   (0)  [        Not completely tested        ] | ||||
|     Update scripts               (1) | ||||
|     Update sources               (2) | ||||
|     Build toolchain              (3) | ||||
|   Final operations: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ ATTENTION! Router might be damaged! ] | ||||
|     EEPROM                       (6)  [          Applies once only          ] | ||||
|   Miscellaneous: | ||||
|     Script settings              (S)ettings | ||||
|     Restore backup              s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_mi_3"]="------------------------------------------------------------------------------- | ||||
|   Please enter number or letter of required menu item | ||||
|   Initial operations: | ||||
|     Update scripts               (1) | ||||
|     Update sources               (2) | ||||
|     Build toolchain              (3) | ||||
|   Final operations: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ ATTENTION! Router might be damaged! ] | ||||
|     EEPROM                       (6)  [          Applies once only          ] | ||||
|   Miscellaneous: | ||||
|     Script settings              (S)ettings | ||||
|     Restore backup              s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_3"]="------------------------------------------------------------------------------- | ||||
|   Please enter number or letter of required menu item | ||||
|   Initial operations: | ||||
|     SSH-hack of stock firmware   (0)  [        Not completely tested        ] | ||||
|     Update scripts               (1) | ||||
|     Update sources               (2) | ||||
|     Build toolchain              (3) | ||||
|   Final operations: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ ATTENTION! Router might be damaged! ] | ||||
|     EEPROM                       (6)  [          Applies once only          ] | ||||
|   Miscellaneous: | ||||
|     Script settings              (S)ettings | ||||
|     Restore backup              s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_mi_nano"]="------------------------------------------------------------------------------- | ||||
|   Please enter number or letter of required menu item | ||||
|   Initial operations: | ||||
|     Update scripts               (1) | ||||
|     Update sources               (2) | ||||
|     Build toolchain              (3) | ||||
|   Final operations: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ ATTENTION! Router might be damaged! ] | ||||
|   Miscellaneous: | ||||
|     Script settings              (S)ettings | ||||
|     Restore backup              s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_nano"]="------------------------------------------------------------------------------- | ||||
|   Please enter number or letter of required menu item | ||||
|   Initial operations: | ||||
|     SSH-hack of stock firmware   (0)  [        Not completely tested        ] | ||||
|     Update scripts               (1) | ||||
|     Update sources               (2) | ||||
|     Build toolchain              (3) | ||||
|   Final operations: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ ATTENTION! Router might be damaged! ] | ||||
|   Miscellaneous: | ||||
|     Script settings              (S)ettings | ||||
|     Restore backup              s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   Please enter number or letter of required menu item | ||||
|   Initial operations: | ||||
|     Update scripts               (1) | ||||
|     Update sources               (2) | ||||
|     Build toolchain              (3) | ||||
|   Final operations: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ ATTENTION! Router might be damaged! ] | ||||
|   Miscellaneous: | ||||
|     Script settings              (S)ettings | ||||
|     Restore backup              s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
| ) | ||||
							
								
								
									
										541
									
								
								scripts/messages/messages_es
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										541
									
								
								scripts/messages/messages_es
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,541 @@ | ||||
| dictionary=( | ||||
|     ["select_the_version_of_the_repository"]="$BLUE Please select the version of the repository: $NONE" | ||||
|     ["cleaning_is_launched"]="$BLUE ATENCIÓN! Es altamente recomendable limpiar el código fuente. " | ||||
|     ["available_patchs"]="$BLUE Los siguientes parches están disponibles: $NONE" | ||||
|     ["select_patch"]="Por favor, seleccione el número del parche que desea aplicar: " | ||||
|     ["patchs_are_absent"]="$RED Faltan parches!Los paquetes no están incluidos en el paquete estándar del script.  Puede que sea necesario actualizar este módulo para descargar parches. $NONE" | ||||
|     ["patch_has_been_added"]="$GREEN El parche ha sido aplicado con exito. $NONE" | ||||
|     ["mi3_recovery_confirm"]="$RED El router se reiniciará en modo de recuperación.Una memoria USB flash con el firmware original (miwifi.bin) es muy necesaria. $NONE" | ||||
|     ["please_enter_the_first_mac"]="$BLUE Introduzca una dirección MAC primaria o introduzca "NO" para generarla. (WAN&WLAN2.4)$NONE" | ||||
|     ["please_enter_the_second_mac"]="$BLUE Introduzca una dirección MAC secundaria o introduzca "NO" para generarla.  (LAN&WLAN5)$NONE" | ||||
|     ["selected_mac"]="$BLUE La dirección MAC  fue aceptada! $NONE" | ||||
|     ["select_existed_mac"]="$RED Introduzca una dirección MAC válida. | ||||
| $BLUE For example: DD:AF:E2:01:2A:65$NONE" | ||||
|     ["mac_addresses_selected"]="$BLUE Las siguientes direcciones MAC han sido seleccionadas: | ||||
|  WAN/WLAN 2.4 : $YELLOW$MAC1$BLUE | ||||
|  LAN/WLAN 5   : $YELLOW$MAC2$NONE" | ||||
|     ["addresses_have_changed"]="$RED Las direcciones MAC seleccionadas han sido actualizadas. $NONE" | ||||
|     ["confirm_the_input_addresses"]="$RED Está seguro de que desea cambiar la dirección MAC? (y/n) $NONE" | ||||
|     ["you_want_to_delete_config"]="$RED Esta seguro de que desea eliminar la $GREEN$CONFIG_FIRMWARE_PRODUCT_ID$RED configuración? (y/n) $NONE" | ||||
|     ["i_understand_and_agree"]="$RED Está seguro de que desea flashear de todos modos? (y/n) $NONE" | ||||
|     ["ids_comparison"]="$BLUE Error de identificación, compruebe que los siguientes datos son correctos: | ||||
|  Firmware: $RED$FFM$BLUE | ||||
|  Router:   $RED$rt_hostname$BLUE | ||||
|  Configuración:   $RED$CONFIG_FIRMWARE_PRODUCT_ID$BLUE | ||||
|  Los datos podrían ser diferentes al del firmware original, es un comportamiento normal.$NONE" | ||||
|     ["source_code_download_error"]="$RED Error al descargar el código fuente! $NONE" | ||||
|     ["software_installation_error"]="$RED Error al instalar software installation! $NONE" | ||||
|     ["incorrect_configuration"]="$RED Ha ocurrido un error. La configuración no es correcta. Terminando operación... $NONE" | ||||
|     ["tor_patch_not_applied"]="$RED El parche no fue aplicado. Terminando la operación... $NONE" | ||||
|     ["select_mtd"]="Introduzca el número de la partición necesaria: " | ||||
|     ["available_mtd"]="$BLUE Lista de particiones disponibles : $NONE" | ||||
|     ["mtd_has_been_selected"]="$GREEN se ha seleccionado ${MTDS[$yn]} para instalar $NONE" | ||||
|     ["insert_usb_flash_drive"]="$RED Por favor, conecte una memoria USB con el firmware original (miwifi.bin) en el puerto USB y pulse brevemente en el botón de reinicio. $NONE" | ||||
|     ["error_firmware_1"]="$RED Advertencia! Flashee inmediatamente el firmware de fabrica por la interfaz web! No reinicie el router! $NONE" | ||||
|     ["entware_mounted"]="$GREEN Entware se montó con éxito! $NONE" | ||||
|     ["error_occured_so_removing_module"]="$RED $error_text...eliminando modulo $NONE" | ||||
|     ["cleaning_router_temp_directory"]="$GREEN Limpiando directorio temporal del router... $NONE" | ||||
|     ["copying_entware_from_router_to_firmware"]="$GREEN Copiando Entware desde el router al firmware... $NONE" | ||||
|     ["compressing_router_entware"]="$GREEN Comprimiendo entware del router... $NONE" | ||||
|     ["cant_get_access_to_the_router"]="No se puede acceder al router" | ||||
|     ["testing_router_connection"]="$GREEN Comprobando conexion al router... $NONE" | ||||
|     ["router_access_params_is_abc"]="$BLUE Los parámetros de acceso al router son: usuario=$ROOTWRT, contraseña=$PWDR, ip=$IPWRT $NONE" | ||||
|     ["removing_entware_patch"]="$GREEN Eliminando parche Entware... $NONE" | ||||
|     ["applying_entware_patch"]="$GREEN Aplicando parche Entware... $NONE" | ||||
|     ["paragon_ntfs_driver_has_been_added"]="$BLUE  El driver Paragon NTFS fue aplicado con éxito.... $NONE" | ||||
|     ["cleaning_sources"]="$BLUE Limpiando las fuentes... $NONE" | ||||
|     ["do_you_want_to_clean_up"]=" Está seguro de que desea limpiar las fuentes? (y/n) " | ||||
|     ["cleaning_module_is_launched"]="$BLUE La limpieza ha empezado! $RED" | ||||
|     ["resetting_module_settings"]="$BLUE Restableciendo la configuración del módulo... $NONE" | ||||
|     ["adding_module_to_config_ok"]="$BLUE Añadiendo módulo a la configuración$GREEN OK $NONE" | ||||
|     ["removing_module_from_config_ok"]="$BLUE Eliminando módulo de la configuración$GREEN OK $NONE" | ||||
|     ["tor_privoxy_patch_has_been_removed"]="$GREEN El parche TOR&PRIVOXY&DNSCRYPT fue eliminado! $NONE" | ||||
|     ["moving_module_patch"]="$BLUE Moviendo parche de módulo... $NONE" | ||||
|     ["adding_module_update_fix"]="$BLUE Añadiendo actualización de módulo... $NONE" | ||||
|     ["applying_tor_privoxy_patch"]="$BLUE Aplicando parche TOR&PRIVOXY&DNSCRYPT... $NONE" | ||||
|     ["please_before_module_deletion_update_sources"]="$BLUE Actualiza las fuentes antes de eliminar el modulo! $NONE" | ||||
|     ["module_has_been_deactivated"]="$GREEN El módulo está desactivado! $NONE" | ||||
|     ["preparing_module_patch"]="$BLUE Preparando parche de módulo... $NONE" | ||||
|     ["module_operation_canceled"]="$GREEN Cancelando... $NONE" | ||||
|     ["module_already_installed_do_you_want_to_remove"]="$RED El módulo ya esta instalado. Esta seguro de que lo desea eliminar? (y/n)  $NONE" | ||||
|     ["do_you_want_to_install_module"]="$RED Está seguro de que desea instalar este módulo? (y/n)  $NONE" | ||||
|     ["languages_have_been_lost"]="$RED Ooops!No hay ningun idioma disponible... $NONE" | ||||
|     ["selected_language_is_abc"]="$RED Idiomas de interfaz: ${CONFIGN[$yn]} $NONE" | ||||
|     ["please_select_existed_language"]="$RED Seleccione una opción existente $NONE" | ||||
|     ["cancel_archive_backup"]="$BLUE Q) Cancelar $NONE" | ||||
|     ["cleaning_update"]="$BLUE Limpiando actualización... $NONE" | ||||
|     ["decompressing_update"]="$BLUE Descomprimiendo actualización... $NONE" | ||||
|     ["downloading_update"]="$BLUE Descargando actualización... $NONE" | ||||
|     ["activate_item_with_number_or_return_with_q"]="$YELLOW Seleccione el número de una opción (des)activarla o  regrese presionando Q.$NONE" | ||||
|     ["you_can_build_uboot_only_on_x86_machine"]="$YELLOW La compilacion U-Boot solo esta permitida en máquinas con una arquitectura x86.$NONE" | ||||
|     ["archive_file_is_absent_please_update_script"]="$RED El fichero de archivo no esta presente, actualice el scrip$NONE" | ||||
|     ["archive_file_is_corrupted_please_update_script"]="$RED El fichero de archivo esta dañado, actualice el script$NONE" | ||||
|     ["changes_will_be_applied_after_reboot"]="$BLUE Todos los cambios se aplicaran después del reinicio ... $NONE" | ||||
|     ["action_has_been_canceled_because_of_copy_error"]="$REDLa accion ha sido cancelada debido a un error durante la copia. Por favor intentelo de nuevo. $NONE" | ||||
|     ["do_you_want_to_flash_stock_uboot"]=" Está seguro de que desea flashear un U-Boot stock ? (y/n) " | ||||
|     ["uboot_isnt_found"]="$RED No se encontro U-Boot! $NONE" | ||||
|     ["your_uboot_has_actual_version"]="$GREEN U-Boot ya esta actualizado! $NONE" | ||||
|     ["update_canceled"]="$BLUE La actualización se canceló. $NONE" | ||||
|     ["dont_reboot_your_router_if_you_have_stock_firmware"]="$BLUE Por favor no reinicie el router si todavia tiene el firmware original... $NONE $BLUE" | ||||
|     ["dont_reboot_your_router_until_bootloader_will_be_flashed_successfully"]="$RED NO REINICIE $BLUE el router hastal que U-Boot este flasheado!!! $NONE" | ||||
|     ["newer_bootloader_with_version_abc_has_been_found"]="$RED Newer bootloader is detected: $uboot_new_version $NONE $BLUE" | ||||
|     ["current_bootloader_version_is_abc"]="$BLUE Current bootloader version is $uboot_old_version $NONE" | ||||
|     ["preparing_uboot"]="$BLUE Preparing U-Boot... $NONE" | ||||
|     ["do_you_want_to_flash_uboot"]=" Are you sure that you want to flash U-Boot? (y/n) " | ||||
|     ["uboot_has_been_uploaded_to_the_router"]="$BLUE The uboot.bin file is successfully uploaded to the router... $NONE" | ||||
|     ["uboot_assembled"]="$GREEN U-Boot is assembled! $NONE" | ||||
|     ["configs_have_been_lost"]="$RED Ooops! Configuration files are lost... $NONE" | ||||
|     ["dumping_partition_to_path_abc"]="$BLUE Dumping /dev/$mtd to $SNAPSHOT  $NONE" | ||||
|     ["sources_have_been_patched"]="$BLUE Patch,$NONE$GREEN OK $NONE" | ||||
|     ["please_try_again"]="$BLUE Please try again $NONE" | ||||
|     ["unfortunately_something_goes_wrong"]="$RED Unfortunately something goes wrong $NONE" | ||||
|     ["access_parameters_for_ssh_are_abc"]="$BLUE SSH access parameters:  $RED IP: $GREEN$IP   $RED username:$GREEN root   $RED password: $GREEN$password $NONE" | ||||
|     ["congratulations_you_have_obtained_ssh_access"]="$GREEN Congratulations!!! ${BLUE} SSH-access is successfully obtained$NONE" | ||||
|     ["checking_ssh_access"]="$BLUE Checking SSH-access availability$NONE" | ||||
|     ["launching_ssh"]="$BLUE Starting SSH $NONE" | ||||
|     ["telnet_has_been_launched"]="$GREEN Telnet is started $NONE" | ||||
|     ["launch_error_is_abc"]="$RED Launch error: $BLUE$result$NONE" | ||||
|     ["launching_telnet_on_router"]="$BLUE Starting telnet on the router $NONE" | ||||
|     ["your_ssh_telnet_password_is_abc"]="$BLUE Your ssh/telnet password is $GREEN$password$NONE" | ||||
|     ["founded_router_version_is_abc"]="$BLUE The following router is found: $GREEN$platform $BLUE($version $revision) SN=$GREEN$serial $BLUE($memory) $NONE" | ||||
|     ["checkpoint_has_been_created"]="$NONE$GREEN The checkpoint is saved $NONE" | ||||
|     ["do_you_want_to_create_current_state_checkpoint"]=" Are you sure that you want to save a checkpoint with current state? (y/n) " | ||||
|     ["backup_has_been_saved_to_selected_directory"]="$GREEN Backup is saved to MTD_BACKUP_$CONFIG_FIRMWARE_PRODUCT_ID/$SNAPSHOT $NONE$RED" | ||||
|     ["something_goes_wrong_unable_to_create_backup"]="$RED Something goes wrong, unable to save backup! $NONE" | ||||
|     ["preparing_partitions_backup"]="$BLUE Preparing the partitions backup... $NONE" | ||||
|     ["do_you_want_create_backup_of_all_partitions"]=" Are you sure that you want to backup all partitions? (y/n) " | ||||
|     ["checking_eeprom"]="$BLUE Checking EEPROM... $NONE" | ||||
|     ["eeprom_already_has_been_patched_there_is_no_need_to_do_it_again"]="$GREEN The EEPROM is already patched! There is no any reason to do it again. $NONE" | ||||
|     ["keeping_eeprom_in_its_original_state"]="$BLUE The EEPROM is kept unchanged... $NONE" | ||||
|     ["uploading_eeprom"]="$BLUE Uploading the EEPROM... $NONE" | ||||
|     ["do_you_want_to_flash_eeprom"]=" Are you sure that you want to flash the EEPROM? (y/n) " | ||||
|     ["do_you_want_to_do_it_now"]="$BLUE" | ||||
|     ["stock_eeprom_has_been_found_its_recommended_apply_patch"]="$RED Stock EEPROM was detected, it is strongly recommended to apply the patch!  $NONE" | ||||
|     ["file_doesnt_exist_or_empty"]="$RED The file does not exist or empty!!! $NONE" | ||||
|     ["in_every_unknown_situation_press_3"]="$YELLOW If you are unsure of your actions press 3.$NONE" | ||||
|     ["in_every_unknown_situation_press_1"]="$YELLOW If you are unsure of your actions press 1.$NONE" | ||||
|     ["something_has_been_deleted"]="$YELLOW The archive is cleaned. $NONE" | ||||
|     ["action_has_been_canceled"]="$BLUE The action is canceled. $NONE" | ||||
|     ["router_has_been_flashed_successfully"]="$GREEN The router is successfully flashed... $NONE $BLUE" | ||||
|     ["flashing_firmware"]="$BLUE Flashing... $NONE" | ||||
|     ["detecting_partition"]="$BLUE Detecting partition... $NONE" | ||||
|     ["checking_checksum"]="$BLUE Checking checksum... $NONE" | ||||
|     ["error_occured_during_firmware_uploading"]="$RED An error occured during the firmware uploading... $NONE" | ||||
|     ["rebooting_router_wait_20_seconds"]="$BLUE Rebooting the router, please wait 20 seconds... $NONE" | ||||
|     ["rebooting_router_wait_50_seconds"]="$BLUE Rebooting the router, please wait 50 seconds... $NONE" | ||||
|     ["unsupported_router"]="$RED Unsupported router! $NONE" | ||||
|     ["do_you_want_reboot_router"]=" Are you sure that you want to reboot the router? (y/n) " | ||||
|     ["flashing_completed"]="$BLUE Flashing completed... $NONE" | ||||
|     ["resetting_sources_to_initial_state"]="$BLUE Resettings the sources to the initial state... $NONE" | ||||
|     ["do_you_want_restore_sources"]=" Está seguro de que desea restaurar las fuentes? (y/n) " | ||||
|     ["looks_like_error_happened_in_middle_of_compilation"]="$BLUE An error occured during the compilation process! $NONE" | ||||
|     ["your_firmware_fits_allowed_size"]="$GREEN File size of $FFM is $firmware_size bytes. The file size completely corresponds to the maximum allowed size of $max_allowed_size bytes $NONE" | ||||
|     ["your_firmware_exceeds_allowed_size"]="$RED WARNING! Size of $FFM is $firmware_size bytes. The file size DOES NOT corresponds to the maximum allowed size of $max_allowed_size bytes $NONE" | ||||
|     ["building_firmware"]="$BLUE Building firmware... $NONE" | ||||
|     ["do_you_want_try_fast_build"]=" Are you sure that you want to try quick build (might lead to errors) or quit? (y/n/q) " | ||||
|     ["fast_build_available_only_for_same_source_version"]="$BLUE Quick build is available for the same source version only.$NONE $RED" | ||||
|     ["you_already_have_build_this_firmware"]="$BLUE The firmware was already built. $NONE" | ||||
|     ["modules_are_absent"]="$RED Modules are absent! $NONE" | ||||
|     ["module_has_been_selected"]="$GREEN ${MODS[$yn]} is selected for installing $NONE" | ||||
|     ["selected_module_doesnt_support_updates"]="$RED $line does not support updates. $NONE" | ||||
|     ["getting_update_for_selected_module"]="$BLUE Getting update for $line ... $NONE" | ||||
|     ["go_backward_key"]="$BLUE Q)  Quit $NONE" | ||||
|     ["update_modules_key"]="$BLUE U)  Update $NONE" | ||||
|     ["script_will_be_restarted"]="$RED El script se reiniciara. $NONE" | ||||
|     ["ssh_connection_cant_be_established"]="$RED No se pudo establecer una conexión SSH! $NONE" | ||||
|     ["uploading_storage"]="$BLUE Uploading Storage... $NONE" | ||||
|     ["uploading_firmware"]="$BLUE Uploading Firmware... $NONE" | ||||
|     ["uploading_factory"]="$BLUE Uploading Factory... $NONE" | ||||
|     ["flashing_backup"]="$BLUE Flashing... $NONE" | ||||
|     ["done_now_you_must_reboot_your_router_manually"]="$BLUE Done! It is strongly recommended to reboot the router immediately... $NONE" | ||||
|     ["should_not_reboot_your_router_until_uboot_flashed_successfully"]="$RED ATTENTION! Don't reboot the router until u-boot will be successfully flashed! $NONE" | ||||
|     ["script_is_stopping_because_of_possibility_router_brick"]="$RED The script is stopping due to possibility of the router damage! $NONE" | ||||
|     ["uploading_uboot"]="$BLUE Uploading U-Boot... $NONE" | ||||
|     ["uploading_bootenv"]="$BLUE Uploading BootEnv... $NONE" | ||||
|     ["preparing_bootenv"]="$BLUE Preparing BootEnv... $NONE" | ||||
|     ["do_you_want_restore_uboot_from_backup_or_remain_one_unchanged"]=" Are you sure that you want to restore U-Boot from the backup (Y), or leave it unchanged (N) " | ||||
|     ["do_you_want_restore_firmware_using_selected_file"]=" Are you sure that you want to restore firmware using file ${BACKUP[$I]}? " | ||||
|     ["please_enter_existed_backup"]="$RED Please enter the existing backup. $NONE" | ||||
|     ["restore_backup_canceled"]="$BLUE Cancel... $NONE" | ||||
|     ["select_backup_that_you_want_to_flash"]=" Selecione la copia de seguridad que desea flashear " | ||||
|     ["restore_backup_quit"]="$BLUE Q) Cancel $NONE" | ||||
|     ["this_script_works_only_with_xrmwrt_firmware"]="$BLUE This script operates with XRMWRT firmware only $NONE" | ||||
|     ["backups_not_found"]="$RED Backups not found... $NONE" | ||||
|     ["starting_tftp_server_enter_password"]="$YELLOW Starting TFTP server, you have to enter password from $NONE" | ||||
|     ["firmware_size_cant_exceed_n_bytes"]="$YELLOW Firmware size must correspond to the maximum size of $RED $mtd_max_size $YELLOW bytes $NONE" | ||||
|     ["please_enter_yes_or_no"]="Please enter 'yes' or 'no'" | ||||
|     ["do_you_want_flash_anyway"]=" Are you sure that you want to flash anyway? (y/n) " | ||||
|     ["router_flashed_with_exactly_same_build"]="$RED The router is already flashed with exactly same build $FFM... $NONE $BLUE" | ||||
|     ["you_dont_have_firmware"]="$BLUE There is no any firmware found, at least one should be built first. $NONE" | ||||
|     ["enter_existing_file"]="$RED Por favor, solo introduzca el número de un archivo existente $NONE" | ||||
|     ["canceling"]="$BLUE Cancelado... $NONE" | ||||
|     ["select_build_that_you_want_to_flash"]="Por favor, seleccione compilación que desee flashear: " | ||||
|     ["creating_directories"]="$BLUE Creando directorios... $NONE" | ||||
|     ["better_use_stable_build"]="$YELLOW Si no está seguro, seleccione una versión estable del script.$NONE" | ||||
|     ["remote_server_doesnt_respond"]="$RED El servidor remoto no responde, no es posible continuar! $NONE" | ||||
|     ["server_connection_is_slow"]="La conexión con el servidor es demasiado lenta" | ||||
|     ["checking_connection"]="$BLUE Comprobando conexión... $NONE" | ||||
|     ["command_not_found"]="$RED No se pudo encontrar el comando! $NONE" | ||||
|     ["in_capital_letters_please"]="$YELLOW Solo se permiten mayúsculas! $NONE" | ||||
|     ["enter_router_password"]="$BLUE  Introduzca la contraseña del router: $NONE" | ||||
|     ["enter_router_login"]="$BLUE  Introduzca el nombre de usuario del router: $NONE" | ||||
|     ["router_ip_examples"]="$BLUE  Por ejemplo: 192.168.1.1 o freize.net:22 $NONE" | ||||
|     ["enter_router_ip2"]="$BLUE  Enter router's IP-address: $NONE" | ||||
|     ["enter_data"]="$BLUE  Enter data: $NONE" | ||||
|     ["trying_again"]="$BLUE Trying once again... $NONE" | ||||
|     ["telnet_access_has_been_granted"]="$BLUE TELNET access is granted... $NONE" | ||||
|     ["ssh_access_has_been_granted"]="$BLUE SSH access is granted... $NONE" | ||||
|     ["ssh_access_error"]="$RED SSH access error, check again... $NONE" | ||||
|     ["obtained_telnet_connection"]="$BLUE Telnet connection is established $NONE" | ||||
|     ["connected_to_devicex"]="$YELLOW Connected to $deviceX $NONE" | ||||
|     ["connected_to_unknown_device_running_openwrt"]="$YELLOW Connected to unknown device that running OpenWrt $NONE" | ||||
|     ["connected_to_config_firmware_product_id"]="$YELLOW Connected to $CONFIG_FIRMWARE_PRODUCT_ID $NONE" | ||||
|     ["connected_to_mi_mini"]="$GREEN Connected to MI router$NONE" | ||||
|     ["login_n_pass_couldnt_be_empty"]="$RED Login and password can not be empty! $NONE" | ||||
|     ["you_entered_wrong_routerip_or_one_not_connected"]="$RED Probably entered IP-address is incorrect or the router is not properly connected $NONE" | ||||
|     ["maybe_ssh_connection_forbidden"]="$RED La conexión SSH probablemente no está permitida, compruebe los ajustes del router! $NONE" | ||||
|     ["invalid_login_or_password"]="$RED El nombre de usuario o la contraseña no es valido! $NONE" | ||||
|     ["connection_settings"]="$BLUE Parámetros de conexión: $NONE" | ||||
|     ["sources_error2"]="$BLUE Fuentes:$NONE$RED ERROR $NONE" | ||||
|     ["sources_error"]="$BLUE Fuentes:,$NONE$RED ERROR $NONE" | ||||
|     ["checking_loaded_files"]="$BLUE Comprobando archivos... $NONE" | ||||
|     ["loading_sources"]="$BLUE Cargando fuentes... $NONE" | ||||
|     ["you_want_to_continue"]=" Continuar? (y/n) " | ||||
|     ["unrecognized_router"]="$RED Version de router desconocida $GREEN$platform $BLUE($version $revision) SN=$GREEN$serial $BLUE($memory) $NONE" | ||||
|     ["getting_router_info"]="$BLUE Reuniendo información sobre el router $NONE" | ||||
|     ["init_router"]="$BLUE Inicializando router (puede tardar hasta 30 segundos) $NONE" | ||||
|     ["wrong_pass_or_ipaddr"]="$RED Probablemente la contraseña o dirección ip son incorrectos $NONE" | ||||
|     ["logging_to_webui"]="$BLUE Logging into webui $NONE" | ||||
|     ["enter_pass_from_linux_account"]="$YELLOW Please, enter a password from your Linux account. $NONE" | ||||
|     ["no_connection_with_router"]="$RED No se puede establecer una conexión con el router $NONE" | ||||
|     ["connecting_to_router"]="$BLUE Conectando con router $IP $NONE" | ||||
|     ["bad_pass"]="$RED La contraseña no es correcta. $NONE" | ||||
|     ["webui_pass"]="$BLUE Contraseña de interfaz web: $NONE" | ||||
|     ["enter_router_ip"]="$BLUE Por favor, introduzca la dirección IP del router (default - 192.168.31.1): $NONE" | ||||
|     ["you_want_to_continue_task"]=" Esta seguro de que desea continuar? (y/n) " | ||||
|     ["source_code_patch_is_good"]="$GREEN Parche es válido, puede compilar. $NONE" | ||||
|     ["source_code_patch_is_bad"]="$RED Parche para las fuentes NO ES VALIDO, compilar podría causar errores! " | ||||
|     ["dont_ask_questions_without_logs"]="$RED Por favor copie los registros y luego haga preguntas en 4pda! $NONE" | ||||
|     ["toolchain_error"]="$BLUE La compilación del toolchain terminó con errores! $NONE" | ||||
|     ["building_toolchain"]="$BLUE Compilando toolchain... $NONE" | ||||
|     ["enter_yes_no"]=" Introduzca 'yes' o 'no'" | ||||
|     ["toolchain_build_canceled"]="$BLUE Compilación toolchain abortada! $NONE" | ||||
|     ["toolchain_build_started"]="$BLUE Compilación toolchain iniciada... $NONE" | ||||
|     ["rebuild_toolchain"]=" Compilar de nuevo toolchain? " | ||||
|     ["checking_installed_themes"]="$BLUE Comprobando temas instalados... $NONE" | ||||
|     ["updating_skins"]="$BLUE Updating and applying the themes... $NONE" | ||||
|     ["updating_source_code"]="$BLUE Actualizando fuentes... $NONE" | ||||
|     ["revert_classic_skin"]="$BLUE Restaurando tema original... $NONE" | ||||
|     ["skins_found"]="$BLUE Temas instalados detectados $NONE" | ||||
|     ["ssh_access_established"]="$YELLOW acceso SSH obtenido... $NONE" | ||||
|     ["ssh_access_not_established"]="$YELLOW acceso SSH no establecido,el script término. $NONE" | ||||
|     ["rebooting_router"]="$YELLOW Reiniciando y finalizando script! $NONE" | ||||
|     ["press_to_proceed"]="$RED Presione cualquier tecla para continuar... $NONE" | ||||
|     ["skins_screen_select_item"]="${BLUE}Introduzca el número de la opción de menú deseada: $NONE" | ||||
|     ["white_theme_off"]="$NONE 6. White theme              [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["white_theme_on"]="$NONE 6. White theme              [0.2 MB] [$GREEN0$on$NONE]" | ||||
|     ["yellow_theme_off"]="$NONE 5. Yellow theme             [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["yellow_theme_on"]="$NONE 5. Yellow theme             [0.2 MB] [$GREEN0$on$NONE]" | ||||
|     ["dark_blue_theme_off"]="$NONE 4. Dark-blue theme          [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["dark_blue_theme_on"]="$NONE 4. Dark-blue theme          [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["blue_theme_off"]="$NONE 3. Blue theme               [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["blue_theme_on"]="$NONE 3. Blue theme               [0.4 MB] [$GREEN0$on$NONE]" | ||||
|     ["grey_theme_vector_off"]="$NONE 2. Dark-grey theme (vector) [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["grey_theme_vector_on"]="$NONE 2. Dark-grey theme (vector) [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["grey_theme_off"]="$NONE 1. Dark-grey theme          [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["grey_theme_on"]="$NONE 1. Dark-grey theme          [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["skins_core_off"]="$NONE 0. Skins core               [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["skins_core_on"]="$NONE 0. Skins core               [0.4 MB] [$GREEN0$on$NONE]" | ||||
|     ["available_skins"]="$BLUE The list of available skins: $NONE" | ||||
|     ["select_module"]=" Please enter number of required module: " | ||||
|     ["available_modules"]="$BLUE The list of available modules: $NONE" | ||||
|     ["skin_full_tp2"]="$BLUE Skin:    $NONE $YELLOW    FULL-TP $NONE" | ||||
|     ["skin_full_tp"]="$BLUE Skin:$NONE$YELLOW FULL-TP$NONE" | ||||
|     ["skin_original2"]="$BLUE Skin:    $NONE $GREEN    ORIGINAL $NONE" | ||||
|     ["skin_original"]="$BLUE Skin:$NONE$GREEN ORIGINAL$NONE" | ||||
|     ["skin_lite_tp2"]="$BLUE Skin:    $NONE $YELLOW    LITE-TP $NONE" | ||||
|     ["skin_lite_tp"]="$BLUE Skin:$NONE$YELLOW LITE-TP$NONE" | ||||
|     ["installing_software"]="$YELLOW Instalando software, por favor introduzca contraseña de $NONE" | ||||
|     ["from_your_linux_account"]="$YELLOW your Linux account. $NONE" | ||||
|     ["selected_config"]="$RED Seleccionado ${CONFIGN[$yn]} $NONE" | ||||
|     ["select_existed_config"]="$RED Seleccione una configuración existente: $NONE" | ||||
|     ["select_config"]=" Ingrese el número de configuración requerido: " | ||||
|     ["configs_to_choose"]="$BLUE La lista de configuraciones de enrutadores disponibles: $NONE" | ||||
|     ["xrmwrt_patch_ok"]="$BLUE XRMWRT Patch:$NONE$GREEN OK $NONE" | ||||
|     ["source_code_not_found"]="$BLUE Sources:$NONE$YELLOW     NOT FOUND $NONE" | ||||
|     ["source_code_ok"]="$BLUE Sources:$NONE$YELLOW      $GITCOMMIT $NONE" | ||||
|     ["directories_not_found"]="$BLUE Directorios:$NONE$YELLOW     NO ENCONTRADO $NONE" | ||||
|     ["directories_ok"]="$BLUE Directorios:$NONE$GREEN  OK $NONE" | ||||
|     ["dependencies_ok"]="$BLUE Dependencias:$NONE$GREEN OK$NONE" | ||||
|     ["no_internet_connection"]="$RED No se detectó una conexión a  internet. No es posible continuar! $NONE" | ||||
|     ["config_ok"]="$BLUE Configuracion:$NONE$GREEN       OK $NONE" | ||||
|     ["slow_connection"]="La conexión a internet es demasiado lenta" | ||||
|     ["scripts_ok"]="$BLUE Scripts:$NONE$GREEN      OK $NONE" | ||||
|     ["editor_warning_msg"]="$RED Please, note that to disable a parameter, put # (hash sign) in the begining of a line and vice versa...$NONE" | ||||
|     ["autoeditor_bottom2"]="$NONE (F)AQ 		Follo(W)ing page 	(Q)uit $NONE\n\n${BLUE} Please enter number of required menu item: $NONE" | ||||
|     ["autoeditor_bottom1"]="$NONE (F)AQ		Follo(W)ing page 	(O)penSSL	(Q)uit $NONE\n\n${BLUE} Please enter number of required menu item: $NONE" | ||||
|     ["autoeditor_title"]="$BLUE List of available config parameters:$NONE\n-------------------------------------------------------------------------------" | ||||
|     ["faq_screen_menu3"]="$YELLOW Restaurar todos los cambios     (S) - restaura una copia de seguridad.$NONE" | ||||
|     ["faq_screen_menu2"]="$YELLOW Flash EEPROM patch      (6) - applies once only.$NONE" | ||||
|     ["please_enter_number_of_desired_language"]="$NONE-------------------------------------------------------------------------------$RED | ||||
|  Introduzca el número de la opción de menú deseada: " | ||||
|     ["list_of_available_languages"]="$BLUE Lista de idiomas disponibles: $NONE | ||||
| $NONE-------------------------------------------------------------------------------" | ||||
|     ["entware_module_header"]="$BLUE This module adds ability to start your Entware without an external storage. $NONE | ||||
| $BLUE The module requires a properly connected router with Entware installed. $NONE | ||||
| $RED Firmware compression ratio is 5. | ||||
|  e.g. 30Mb of Entware will increase the firmware up to 6Mb. $NONE" | ||||
|     ["tor_privoxy_module_header"]="$BLUE This module adds TOR&PRIVOXY&DNSCRYPT into source codes. $NONE | ||||
| $RED Please, pay attention that this module requires a custom version of source codes! | ||||
|  If you apply the module the source codes will be downgraded | ||||
|  to the custom version of source codes! $NONE | ||||
| $BLUE After installtion you can select what software you want to include by editing config file. $NONE" | ||||
|     ["you_dont_have_to_change_opened_file"]="$RED You do not have to change opened file. | ||||
|  define - enabled, undef - disabled.$NONE" | ||||
|     ["router_will_be_available_on_next_address_dont_forget_turn_on_ssh"]="$BLUE Se podra acceder al router (despues de un reinicio)en 192.168.1.1  , | ||||
|  El nombre de usuario es 'admin'; la contraseña es 'admin'; El SSID de la red WiFi SSID es 'ASUS'; | ||||
|  La contraseña WiFi por defecto es '1234567890'. | ||||
|  Por favor, no olvide habilitar el acceso SSH para futuras actualizaciones del firmware. | ||||
|  La configuración anterior del router no fue modificada... $NONE" | ||||
|     ["uboot_screen_menu_other_routers"]="  Introduzca el número de la opción de menú deseada: | ||||
|   Flashear/Actualizar U-Boot            (1) | ||||
|   Compilar U-Boot desde fuentes         (2) | ||||
|                                         (F)AQ | ||||
|                                         (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["uboot_screen_menu_mi_mini"]="  Introduzca el número de la opción de menú deseada: | ||||
|   Flashear/Actualizar U-Boot          	(1) | ||||
|   Compilar U-Boot desde fuentes         (2) | ||||
|   Restaurar stock U-Boot                (3) | ||||
|                                         (F)AQ | ||||
|                                         (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["uboot_screen_menu_mi_3"]="  Introduzca el número de la opción de menú deseada: | ||||
|   Flashear/Actualizar U-Boot          	(1) | ||||
|                                         (F)AQ | ||||
|                                         (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["your_firmware_destroyed_in_safety_precautions"]="$RED El firmware fue destruido por razones de seguridad! | ||||
|  Cambie la configuracion y vuelva a compilar.$NONE" | ||||
|     ["restore_backup_warning"]="$RED Aviso! $NONE | ||||
| $BLUE Si algo falla, no reinicie el router y vuelvelo a flashear hasta que tenga éxito. $NONE | ||||
| $BLUE Después de la recuperación todos los ajustes del router se restaurarán al estado cuando se creó la copia de seguridad. $NONE | ||||
|  | ||||
| " | ||||
|     ["faq_screen_menu"]="$YELLOW Introduzca el número de la opción de menú deseada. Si no sabe que hacer, selecione | ||||
|  cada opción, de arriba a abajo. Lo hace bajo su propia responsabilidad... | ||||
|  | ||||
|  Actualizar scripts      (1) - actualiza el script. | ||||
|  Actualizar fuentes      (2) - actualiza el código fuente, hágalo antes de las opciones 3 y 4. | ||||
|  Compilar toolchain      (3) - compila el toolchain,cambia raramente. | ||||
|  Flashear firmware       (4) - carga un firmware en el router. | ||||
|  U-Boot                  (5) - flashea el sector de arranque de un router.$NONE" | ||||
|     ["firmware_uploaded_into_router_do_flashing"]="$BLUE El firmware fue cargado en el router... $NONE | ||||
| $BLUE Flashing... $NONE" | ||||
|     ["enable_ssh_and_enter_data_from_xiaomi_site_or_xrmwrt_webui"]="$YELLOW Obtenga el firmware original en la web de xiaomi, para xrmwrt | ||||
|  obtenga el usuario y la contraseña en la interfaz web, recuerde también que el acceso SSH debe ser activado desde la interfaz web. $NONE" | ||||
|     ["connection_screen_menu"]="------------------------------------------------------------------------------- | ||||
|  Son los parámetros de conexión correctos? | ||||
|  Introduzca una respuesta: | ||||
|  Los parámetros son correctos  	(1) | ||||
|  Actualizar parámetros          (2) | ||||
|                                 (F)AQ | ||||
|                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["update_prometheus_menu"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada: | ||||
|   Actualizar script a versión estable           (1) | ||||
|   Actualizar script a versión de prueba	        (2) | ||||
|   Aplicar parche	                        (3) | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
| Introduzca el número de la opción de menú deseada: | ||||
|   Editor automatico                             (1) | ||||
|   Editar configuración en bloque de notas       (2) | ||||
|   Restablecer cambios                           (3) | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_wt3020"]="------------------------------------------------------------------------------- | ||||
|  Introduzca el número de la opción de menú deseada: | ||||
|   Editor automatico                             (1) | ||||
|   Editar configuración en bloque de notas       (2) | ||||
|   Restablecer cambios                           (3) | ||||
|   Reemplazar boton 'Reset' por 'WPS'            (4) [ Configurable desde interfaz web ] | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada: | ||||
|   Editor automatico                             (1) | ||||
|   Editar configuración en bloque de notas       (2) | ||||
|   Restablecer cambios                           (3) | ||||
|   Reemplazar boton 'Reset' por 'WPS'            (4) [ Configurable desde interfaz web ] | ||||
|   Habilitar LED roja para WAN                   (5) [ Configurable desde interfaz web ] | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["firmware_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada: | ||||
|   Cambiar la configuración de compilación    	(1) | ||||
|   Aplicar temas                                 (2) | ||||
|   Compilar firmware                             (3) | ||||
|   Flashear firmware                             (4) | ||||
|   Seleccionar un firmware del archivo           (5) | ||||
|   Limpiar archivo de firmware                   (6) | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["firmware_screen_menu_mi_3"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada: | ||||
|   Cambiar la configuración de compilación       (1) | ||||
|   Aplicar temas                                 (2) | ||||
|   Compilar firmware                             (3) | ||||
|   Flashear firmware                             (4) | ||||
|   Seleccionar un firmware del archivo           (5) | ||||
|   Limpiar archivo de firmware                   (6) | ||||
|   Formatear RWFS                                (7) | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["settings_screen_menu"]=" | ||||
| $BLUE  Autores script : Freize, Yadoff, Firsthash. | ||||
|   Traducción al español: David Claeys | ||||
|   Contacto: is@freize.net | ||||
|   Web: http://prometheus.freize.net/ $NONE | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada: | ||||
|   Cambiar configuracion del router              (1) | ||||
|   Eliminar configuracion                        (2) | ||||
|   Módulos                                       (3) | ||||
|   Idioma                                        (4) | ||||
|   Configuracion SSH                             (5) | ||||
|   Select a repository                           (6) | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["prometheus_header"]="-------------------------------------------------------------------------------$BLUE | ||||
|   $NONE$GREEN                               PROMETHEUS $NONE$BLUE | ||||
|   $NONE$RED                       Version script: $PROMETHEUS2$PROMETHEUS3 $stable $NONE$BLUE | ||||
|   Prometheus es un script para mantener y actualizar un firmware de router. | ||||
|   Configuracion router: $GREEN$CONFIG_FIRMWARE_PRODUCT_ID$BLUE SN: $YELLOW$SSHTOK$BLUE GIT$GITOK$YELLOW$GITCOMMIT$BLUE | ||||
|  $ST52$FIRM$Tema$NONE | ||||
| " | ||||
|     ["main_screen_menu_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada | ||||
|   Operaciones iniciales: | ||||
|     SSH-hack del firmware estándar              (0)  [        No probado completamente       ] | ||||
|     Actualizar scripts               	        (1) | ||||
|     Actualizar fuentes                          (2) | ||||
|     Compilar toolchain                          (3) | ||||
|   Operaciones finales: | ||||
|     Firmware                                    (4) | ||||
|     U-Boot                                      (5)  [ ATENCIÓN! El router podría quedar dañado! ] | ||||
|     EEPROM                                      (6)  [          Se aplica solo una vez          ] | ||||
|  Diverso: | ||||
|     Configuración script                        (S)ettings | ||||
|     Restaurar copia de seguridad               s(T)ok | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada | ||||
|   Operaciones iniciales: | ||||
|     SSH-hack del firmware estándar              (0)  [        No probado completamente       ] | ||||
|     Actualizar scripts                          (1) | ||||
|     Actualizar fuentes                          (2) | ||||
|     Compilar toolchain                          (3) | ||||
|   Operaciones finales: | ||||
|     Firmware                                    (4) | ||||
|     U-Boot                                      (5)  [ ATENCIÓN! El router podría quedar dañado! ] | ||||
|     EEPROM                                      (6)  [          Se aplica solo una vez          ] | ||||
|  Diverso: | ||||
|     Configuración script                        (S)ettings | ||||
|     Restaurar copia de seguridad               s(T)ok | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_mi_3"]="------------------------------------------------------------------------------- | ||||
|     Introduzca el número de la opción de menú deseada | ||||
|   Operaciones iniciales: | ||||
|     Actualizar scripts                          (1) | ||||
|     Actualizar fuentes                          (2) | ||||
|     Compilar toolchain                          (3) | ||||
|   Operaciones finales: | ||||
|     Firmware                                    (4) | ||||
|     U-Boot                                      (5)  [ ATENCIÓN! El router podría quedar dañado! ] | ||||
|     EEPROM                                      (6)  [          Se aplica solo una vez          ] | ||||
|  Diverso: | ||||
|     Configuración script                        (S)ettings | ||||
|     Restaurar copia de seguridad               s(T)ok | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_3"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada | ||||
|   Operaciones iniciales: | ||||
|     SSH-hack del firmware estándar              (0)  [        No probado completamente       ] | ||||
|     Actualizar scripts                          (1) | ||||
|     Actualizar fuentes                          (2) | ||||
|     Compilar toolchain                          (3) | ||||
|   Operaciones finales: | ||||
|     Firmware                                    (4) | ||||
|     U-Boot                                      (5)  [ ATENCIÓN! El router podría quedar dañado! ] | ||||
|     EEPROM                                      (6)  [          Se aplica solo una vez          ] | ||||
|  Diverso: | ||||
|     Configuración script                        (S)ettings | ||||
|     Restaurar copia de seguridad               s(T)ok | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_mi_nano"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada | ||||
|   Operaciones iniciales: | ||||
|     Actualizar scripts                          (1) | ||||
|     Actualizar fuentes                          (2) | ||||
|     Compilar toolchain                          (3) | ||||
|   Operaciones finales: | ||||
|     Firmware                                    (4) | ||||
|     U-Boot                                      (5)  [ ATENCIÓN! El router podría quedar dañado!  ] | ||||
|   Diverso: | ||||
|     Configuración script                        (S)ettings | ||||
|     Restaurar copia de seguridad               s(T)ok | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_nano"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada | ||||
|   Operaciones iniciales: | ||||
|     SSH-hack del firmware estándar              (0)  [        No probado completamente         ] | ||||
|     Actualizar scripts                          (1) | ||||
|     Actualizar fuentes                          (2) | ||||
|     Compilar toolchain                          (3) | ||||
|   Operaciones finales: | ||||
|     Firmware                                    (4) | ||||
|     U-Boot                                      (5)  [ ATENCIÓN! El router podría quedar dañado!  ] | ||||
|   Miscellaneous: | ||||
|     Configuración script                        (S)ettings | ||||
|     Restaurar copia de seguridad               s(T)ok | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   Introduzca el número de la opción de menú deseada | ||||
|   Operaciones iniciales: | ||||
|     Actualizar scripts                          (1) | ||||
|     Actualizar fuentes                          (2) | ||||
|     Compilar toolchain                          (3) | ||||
|   Operaciones finales: | ||||
|     Firmware                                    (4) | ||||
|     U-Boot                                      (5)  [ ATENCIÓN! El router podría quedar dañado!  ] | ||||
|   Diverso: | ||||
|     Configuración script                        (S)ettings | ||||
|     Restaurar copia de seguridad               s(T)ok | ||||
|                                                 (F)AQ | ||||
|                                                 (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
| ) | ||||
|  | ||||
							
								
								
									
										11
									
								
								scripts/messages/messages_example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								scripts/messages/messages_example
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| # Steps to create your own localization. | ||||
| # 1) Copy messages_en file as messages_xx where xx is new language in lowercase (i.e. ru, uk, us, zh, pl). | ||||
| # 2) File messages_xx consists of key/value pairs. Replace each value with message in your language. | ||||
| # 3) Done! | ||||
|  | ||||
| # File messages_xx structure overview. | ||||
| dictionary=( | ||||
|     ["key1"]="value1" | ||||
|     ["key2"]="value2" | ||||
|     ["key3"]="value3" | ||||
| ) | ||||
							
								
								
									
										537
									
								
								scripts/messages/messages_ru
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										537
									
								
								scripts/messages/messages_ru
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,537 @@ | ||||
| dictionary=( | ||||
|     ["padavan_ng_repository_warning"]="\n $RED Вы выбрали репозиторий padavan-ng(linaro). Код в ядре Linux, имеющий\n отношение к флэш памяти, был переписан и не проходил тщательное тестирование!\n Рекомендуется не использовать данный репозиторий, если в вашем устройстве\n нет режима восстановления в загрузчике!\n $NONE" | ||||
|     ["select_the_version_of_the_repository"]="$BLUE Пожалуйста выберите версию репозитория: $NONE" | ||||
|     ["cleaning_is_launched"]="$BLUE ВНИМАНИЕ! Для правильной работы требуется очистить исходный код. " | ||||
|     ["available_patchs"]="$BLUE Доступны следующие патчи: $NONE" | ||||
|     ["select_patch"]=" Выберите номер патча, который вы хотите запустить: " | ||||
|     ["patchs_are_absent"]="$RED Патчи отсутствуют! Патчи не поставляются в стандартной сборке скриптов. Возможно, требуется обновить данный модуль для подгрузки патчей с сервера. $NONE" | ||||
|     ["patch_has_been_added"]="$GREEN Патч добавлен. $NONE" | ||||
|     ["mi3_recovery_confirm"]="$RED Ваш роутер перезагружается в режим recovery. Пожалуйста вставьте USB диск со стоковой прошивкой (miwifi.bin) и нажмите кнопку reset. $NONE" | ||||
|     ["please_enter_the_first_mac"]="$BLUE Пожалуйста введите первый MAC адрес или введите NO для генерации. (WAN&WLAN2.4) $NONE" | ||||
|     ["please_enter_the_second_mac"]="$BLUE Пожалуйста введите второй MAC адрес или введите NO для генерации. (LAN&WLAN5)$NONE" | ||||
|     ["selected_mac"]="$BLUE MAC адрес принят! $NONE" | ||||
|     ["select_existed_mac"]="$RED Пожалуйста введите корректный адрес. | ||||
|  Например DD:AF:E2:01:2A:65$NONE" | ||||
|     ["mac_addresses_selected"]="$BLUE Выбраны следующие адреса: | ||||
|  WAN/WLAN 2.4 : $YELLOW$MAC1$BLUE | ||||
|  LAN/WLAN 5   : $YELLOW$MAC2$NONE" | ||||
|     ["addresses_have_changed"]="$RED MAC адреса успешно изменены. $NONE" | ||||
|     ["confirm_the_input_addresses"]="$RED Вы точно хотите сменить MAC? (y/n) $NONE" | ||||
|     ["you_want_to_delete_config"]="$RED Точно хотите удалить выбранный конфиг: $GREEN$CONFIG_FIRMWARE_PRODUCT_ID$RED? (y/n) $NONE" | ||||
|     ["i_understand_and_agree"]="$RED Все равно прошить? (y/n) $NONE" | ||||
|     ["ids_comparison"]="$BLUE Ошибка идентификации, пожалуйста проверьте данные: | ||||
|  Firmware: $RED$FFM$BLUE | ||||
|  Router:   $RED$rt_hostname$BLUE | ||||
|  Config:   $RED$CONFIG_FIRMWARE_PRODUCT_ID$BLUE | ||||
|  Данные могут отличаться для стоковой прошивки, это нормально. $NONE" | ||||
|     ["source_code_download_error"]="$RED Ошибка загрузки исходного кода! $NONE" | ||||
|     ["software_installation_error"]="$RED Ошибка установки зависимостей! $NONE" | ||||
|     ["incorrect_configuration"]="$RED Ошибка. Выбран неверный конфиг. Выходим... $NONE" | ||||
|     ["tor_patch_not_applied"]="$RED Ошибка. Патч не применился. Выходим... $NONE" | ||||
|     ["select_mtd"]=" Выберите номер раздела для установки прошивки " | ||||
|     ["available_mtd"]="$BLUE Доступны следующие разделы: $NONE" | ||||
|     ["mtd_has_been_selected"]="$GREEN Выбран ${MTDS[$yn]} $NONE" | ||||
|     ["insert_usb_flash_drive"]="$RED Теперь вставьте флешку со стоковой прошивкой miwifi.bin в USB и кратковременно нажмите ресет. $NONE" | ||||
|     ["error_firmware_1"]="$RED Незамедлительно прошейте стоковую прошивку через WEB интерфейс! Не перезагружайте роутер! $NONE" | ||||
|     ["entware_mounted"]="$GREEN Entware уже смонтировано! $NONE" | ||||
|     ["error_occured_so_removing_module"]="$RED $error_text...удаляем модуль $NONE" | ||||
|     ["cleaning_router_temp_directory"]="$GREEN Очищаем временную папку роутера... $NONE" | ||||
|     ["copying_entware_from_router_to_firmware"]="$GREEN Переносим полученный архив из роутера в прошивку... $NONE" | ||||
|     ["compressing_router_entware"]="$GREEN Архивируем entware на роутере... $NONE" | ||||
|     ["cant_get_access_to_the_router"]="Соединение с роутером не может быть установлено" | ||||
|     ["testing_router_connection"]="$GREEN Проверяем соединение с роутером... $NONE" | ||||
|     ["router_access_params_is_abc"]="$BLUE Параметры доступа к роутеру: логин=$ROOTWRT, пароль=$PWDR, адрес=$IPWRT $NONE" | ||||
|     ["removing_entware_patch"]="$GREEN Удаляем патч Entware... $NONE" | ||||
|     ["applying_entware_patch"]="$GREEN Применяем патч Entware... $NONE" | ||||
|     ["paragon_ntfs_driver_has_been_added"]="$BLUE Парагоновский драйвер NTFS подключен... $NONE" | ||||
|     ["cleaning_sources"]="$BLUE Очищаем... $NONE" | ||||
|     ["do_you_want_to_clean_up"]=" Вы желаете очистить? (y/n) " | ||||
|     ["cleaning_module_is_launched"]="$BLUE Запущен модуль очистки исходного кода! $RED" | ||||
|     ["resetting_module_settings"]="$BLUE Сбрасываем настройки модуля на начальные... $NONE" | ||||
|     ["adding_module_to_config_ok"]="$BLUE Добавляем в конфиг$GREEN OK $NONE" | ||||
|     ["removing_module_from_config_ok"]="$BLUE Удаляем из конфига$GREEN OK $NONE" | ||||
|     ["tor_privoxy_patch_has_been_removed"]="$GREEN Патч TOR&PRIVOXY&DNSCRYPT удален! $NONE" | ||||
|     ["moving_module_patch"]="$BLUE Перемещаем патч... $NONE" | ||||
|     ["adding_module_update_fix"]="$BLUE Добавляем фикс обновления... $NONE" | ||||
|     ["applying_tor_privoxy_patch"]="$BLUE Применяем патч TOR&PRIVOXY&DNSCRYPT... $NONE" | ||||
|     ["please_before_module_deletion_update_sources"]="$BLUE Пожалуйста, перед удалением, обновите исходники! $NONE" | ||||
|     ["module_has_been_deactivated"]="$GREEN Модуль деактивирован! $NONE" | ||||
|     ["preparing_module_patch"]="$BLUE Подготавливаем патч... $NONE" | ||||
|     ["module_operation_canceled"]="$GREEN Отменено! $NONE" | ||||
|     ["module_already_installed_do_you_want_to_remove"]="$RED Модуль уже установлен. Удалить? (y/n)  $NONE" | ||||
|     ["do_you_want_to_install_module"]="$RED Вы желаете установить модуль? (y/n)  $NONE" | ||||
|     ["languages_have_been_lost"]="$RED Языковые файлы отсутствуют... $NONE" | ||||
|     ["selected_language_is_abc"]="$RED Язык интерфейса: ${CONFIGN[$yn]} $NONE" | ||||
|     ["please_select_existed_language"]="$RED Пожалуйста, выберите существующий пункт $NONE" | ||||
|     ["cancel_archive_backup"]="$BLUE Q) Отменить $NONE" | ||||
|     ["cleaning_update"]="$BLUE Чистим... $NONE" | ||||
|     ["decompressing_update"]="$BLUE Разархивируем... $NONE" | ||||
|     ["downloading_update"]="$BLUE Загружаем... $NONE" | ||||
|     ["activate_item_with_number_or_return_with_q"]="$YELLOW Нажмите цифру для активации и деактивации параметра Q для возврата.$NONE" | ||||
|     ["you_can_build_uboot_only_on_x86_machine"]="$YELLOW Собрать U-BOOT можно только на х86 машине.$NONE" | ||||
|     ["archive_file_is_absent_please_update_script"]="$RED Архивный файл отсутствует, обновите скрипт$NONE" | ||||
|     ["archive_file_is_corrupted_please_update_script"]="$RED Архивный файл поврежден, обновите скрипт$NONE" | ||||
|     ["changes_will_be_applied_after_reboot"]="$BLUE Изменения вступят в силу после перезанрузки ... $NONE" | ||||
|     ["action_has_been_canceled_because_of_copy_error"]="$RED Действие отменено из-за ошибки копирования. Попробуйте повторить. $NONE" | ||||
|     ["do_you_want_to_flash_stock_uboot"]=" Вы желаете прошить стоковый U-Boot? (y/n) " | ||||
|     ["uboot_isnt_found"]="$RED U-Boot не найден! $NONE" | ||||
|     ["your_uboot_has_actual_version"]="$GREEN Ваш U-Boot актуален! $NONE" | ||||
|     ["update_canceled"]="$BLUE Отмена обновления. $NONE" | ||||
|     ["dont_reboot_your_router_if_you_have_stock_firmware"]="$BLUE Не перезагружайте роутер если прошивка все еще стоковая... $NONE $BLUE" | ||||
|     ["dont_reboot_your_router_until_bootloader_will_be_flashed_successfully"]="$RED НЕ ПЕРЕЗАГРУЖАЙТЕ$BLUE роутер пока u-boot не прошьется успешно!!! $NONE" | ||||
|     ["newer_bootloader_with_version_abc_has_been_found"]="$RED Обнаруженн новый загрузчик: $uboot_new_version $NONE $BLUE" | ||||
|     ["current_bootloader_version_is_abc"]="$BLUE Текущий загрузчик в роутере: $uboot_old_version $NONE" | ||||
|     ["preparing_uboot"]="$BLUE Подготавливаем U-Boot... $NONE" | ||||
|     ["do_you_want_to_flash_uboot"]=" Вы желаете прошить U-Boot? (y/n) " | ||||
|     ["uboot_has_been_uploaded_to_the_router"]="$BLUE uboot.bin загружен на роутер... $NONE" | ||||
|     ["uboot_assembled"]="$GREEN U-BOOT собран! $NONE" | ||||
|     ["configs_have_been_lost"]="$RED Упс! Конфиги потерялись... $NONE" | ||||
|     ["dumping_partition_to_path_abc"]="$BLUE Дампим /dev/$mtd в $SNAPSHOT  $NONE" | ||||
|     ["sources_have_been_patched"]="$BLUE Патч,$NONE$GREEN OK $NONE" | ||||
|     ["please_try_again"]="$BLUE Повторите попытку $NONE" | ||||
|     ["unfortunately_something_goes_wrong"]="$RED К сожалению что-то пошло не так $NONE" | ||||
|     ["access_parameters_for_ssh_are_abc"]="$BLUE Параметры доступа:  $RED IP: $GREEN$IP   $RED username:$GREEN root   $RED password: $GREEN$password $NONE" | ||||
|     ["congratulations_you_have_obtained_ssh_access"]="$GREEN Поздравляем!!! $BLUEВы получили доступ по SSH$NONE" | ||||
|     ["checking_ssh_access"]="$BLUE Проверяем доступ по SSH$NONE" | ||||
|     ["launching_ssh"]="$BLUE Запускаем SSH $NONE" | ||||
|     ["telnet_has_been_launched"]="$GREEN telnet запущен $NONE" | ||||
|     ["launch_error_is_abc"]="$RED Ошибка запуска: $BLUE$result$NONE" | ||||
|     ["launching_telnet_on_router"]="$BLUE Запускаем telnet на роутере $NONE" | ||||
|     ["your_ssh_telnet_password_is_abc"]="$BLUE Пароль для доступа по ssh/telnet $GREEN$password$NONE" | ||||
|     ["founded_router_version_is_abc"]="$BLUE Найден роутер: $GREEN$platform $BLUE($version $revision) SN=$GREEN$serial $BLUE($memory) $NONE" | ||||
|     ["checkpoint_has_been_created"]="$NONE$GREEN Чекпоинт создан $NONE" | ||||
|     ["do_you_want_to_create_current_state_checkpoint"]=" Создать чекпоинт для восстановления к текущему состоянию? (y/n) " | ||||
|     ["backup_has_been_saved_to_selected_directory"]="$GREEN Бэкап сохранён в MTD_BACKUP_$CONFIG_FIRMWARE_PRODUCT_ID/$SNAPSHOT $NONE$RED" | ||||
|     ["something_goes_wrong_unable_to_create_backup"]="$RED Что-то пошло не так, не удалось создать бэккап! $NONE" | ||||
|     ["preparing_partitions_backup"]="$BLUE Подготавливаем бэккап... $NONE" | ||||
|     ["do_you_want_create_backup_of_all_partitions"]=" Создать бэккап всех разделов? (y/n) " | ||||
|     ["checking_eeprom"]="$BLUE Проверяем EEPROM... $NONE" | ||||
|     ["eeprom_already_has_been_patched_there_is_no_need_to_do_it_again"]="$GREEN EEPROM уже был пропатчен! Не надо повторять снова. $NONE" | ||||
|     ["keeping_eeprom_in_its_original_state"]="$BLUE Оставляем как есть... $NONE" | ||||
|     ["uploading_eeprom"]="$BLUE Загружаем EEPROM... $NONE" | ||||
|     ["do_you_want_to_flash_eeprom"]=" Вы желаете прошить EEPROM? (y/n) " | ||||
|     ["do_you_want_to_do_it_now"]="$BLUE" | ||||
|     ["stock_eeprom_has_been_found_its_recommended_apply_patch"]="$RED Обнаружен заводской EEPROM, рекомендуется накатить патч!  $NONE" | ||||
|     ["file_doesnt_exist_or_empty"]="$RED Файл не существует или пуст!!! $NONE" | ||||
|     ["in_every_unknown_situation_press_3"]="$YELLOW В любой запутанной ситуации жмите 3.$NONE" | ||||
|     ["in_every_unknown_situation_press_1"]="$YELLOW В любой запутанной ситуации жмите 1.$NONE" | ||||
|     ["something_has_been_deleted"]="$YELLOW Удалено! $NONE" | ||||
|     ["action_has_been_canceled"]="$BLUE Действие отменено. $NONE" | ||||
|     ["router_has_been_flashed_successfully"]="$GREEN Роутер прошит... $NONE $BLUE" | ||||
|     ["flashing_firmware"]="$BLUE Прошиваем... $NONE" | ||||
|     ["detecting_partition"]="$BLUE Определяем раздел... $NONE" | ||||
|     ["checking_checksum"]="$BLUE Проверяем Checksum... $NONE" | ||||
|     ["error_occured_during_firmware_uploading"]="$RED Ошибка при загрузке прошивки... $NONE" | ||||
|     ["rebooting_router_wait_20_seconds"]="$BLUE Перезагружаем, ждите 20 секунд... $NONE" | ||||
|     ["rebooting_router_wait_50_seconds"]="$BLUE Перезагружаем, ждите 50 секунд... $NONE" | ||||
|     ["unsupported_router"]="$RED Роутер не поддерживается! $NONE" | ||||
|     ["do_you_want_reboot_router"]=" Перезагрузить роутер? (y/n) " | ||||
|     ["flashing_completed"]="$BLUE Прошивка завершена... " | ||||
|     ["resetting_sources_to_initial_state"]="$BLUE Полный сброс исходного кода... $NONE" | ||||
|     ["do_you_want_restore_sources"]=" Попробовать восстановить исходники? (y/n) " | ||||
|     ["looks_like_error_happened_in_middle_of_compilation"]="$BLUE Похоже, при компиляции произошла ошибка! $NONE" | ||||
|     ["your_firmware_fits_allowed_size"]="$GREEN Размер $FFM = $firmware_size B и соответствует допустимому $max_allowed_size B $NONE" | ||||
|     ["your_firmware_exceeds_allowed_size"]="$RED Размер $FFM = $firmware_size B и превышает допустимый $max_allowed_size B $NONE" | ||||
|     ["building_firmware"]="$BLUE Собираем firmware... $NONE" | ||||
|     ["do_you_want_try_fast_build"]=" Попробовать ускореную сборку? (экспериментально) (y/n/q) " | ||||
|     ["fast_build_available_only_for_same_source_version"]="$BLUE Быстрая сборка доступна только для этой же версии кода.$NONE $RED" | ||||
|     ["you_already_have_build_this_firmware"]="$BLUE Вы уже собирали прошивку... $NONE" | ||||
|     ["modules_are_absent"]="$RED Модули отсутствуют! $NONE" | ||||
|     ["module_has_been_selected"]="$GREEN Выбран ${MODS[$yn]} $NONE" | ||||
|     ["selected_module_doesnt_support_updates"]="$RED $line не поддерживает обновление... $NONE" | ||||
|     ["getting_update_for_selected_module"]="$BLUE Загружаем обновление для $line ... $NONE" | ||||
|     ["go_backward_key"]="$BLUE Q)  Назад $NONE" | ||||
|     ["update_modules_key"]="$BLUE U)  Обновить $NONE" | ||||
|     ["script_will_be_restarted"]="$RED Cкрипт будет перезапущен. $NONE" | ||||
|     ["ssh_connection_cant_be_established"]="$RED Нет соединения по SSH! $NONE" | ||||
|     ["uploading_storage"]="$BLUE Загружаем Storage... $NONE" | ||||
|     ["uploading_firmware"]="$BLUE Загружаем Firmware... $NONE" | ||||
|     ["uploading_factory"]="$BLUE Загружаем Factory... $NONE" | ||||
|     ["flashing_backup"]="$BLUE Прошиваем... $NONE" | ||||
|     ["done_now_you_must_reboot_your_router_manually"]="$BLUE Сделано! Теперь перезагрузите роутер... $NONE" | ||||
|     ["should_not_reboot_your_router_until_uboot_flashed_successfully"]="$RED Настоятельно рекоммендуется повторить попытку не перезагружая роутер! $NONE" | ||||
|     ["script_is_stopping_because_of_possibility_router_brick"]="$RED Для предотвращения повреждения роутера, скрипт останавливается! $NONE" | ||||
|     ["uploading_uboot"]="$BLUE Загружаем U-BOOT... $NONE" | ||||
|     ["uploading_bootenv"]="$BLUE Загружаем BootEnv... $NONE" | ||||
|     ["preparing_bootenv"]="$BLUE Подготавливаем BootEnv... $NONE" | ||||
|     ["do_you_want_restore_uboot_from_backup_or_remain_one_unchanged"]=" Вы желаете восстановить U-BOOT из бэкапа (y), или оставить без изменений (n) " | ||||
|     ["do_you_want_restore_firmware_using_selected_file"]=" Вы желаете восстановить прошивку используя файл ${BACKUP[$I]}? " | ||||
|     ["please_enter_existed_backup"]="$RED Пожалуйста введите сушествующий бэкап. $NONE" | ||||
|     ["restore_backup_canceled"]="$BLUE Отмена... $NONE" | ||||
|     ["select_backup_that_you_want_to_flash"]=" Выберите бэкап который вы хотите прошить " | ||||
|     ["restore_backup_quit"]="$BLUE Q) Отменить $NONE" | ||||
|     ["this_script_works_only_with_xrmwrt_firmware"]="$BLUE Данный скрипт работает только с прошивкой XRMWRT $NONE" | ||||
|     ["backups_not_found"]="$RED Бэкапы не найдены... $NONE" | ||||
|     ["starting_tftp_server_enter_password"]="$YELLOW Запускаем tftp server, требуется ввести пароль от $NONE" | ||||
|     ["firmware_size_cant_exceed_n_bytes"]="$YELLOW Размер прошивки не может превышать $RED $mtd_max_size $YELLOW байт $NONE" | ||||
|     ["please_enter_yes_or_no"]="Пожалуйста введите yes или no." | ||||
|     ["do_you_want_flash_anyway"]=" Все равно прошить заново? (y/n) " | ||||
|     ["router_flashed_with_exactly_same_build"]="$RED Роутер уже прошит именно этим билдом $FFM... $NONE $BLUE" | ||||
|     ["you_dont_have_firmware"]="$BLUE У вас нет прошивки, её сначала надо собрать. $NONE" | ||||
|     ["enter_existing_file"]="$RED Пожалуйста введите сушествующий файл. $NONE" | ||||
|     ["canceling"]="$BLUE Отмена... $NONE" | ||||
|     ["select_build_that_you_want_to_flash"]=" Выберите билд который вы хотите прошить " | ||||
|     ["creating_directories"]="$BLUE Создаем каталоги... $NONE" | ||||
|     ["better_use_stable_build"]="$YELLOW Лучше использовать стабильный билд.$NONE" | ||||
|     ["remote_server_doesnt_respond"]="$RED Удаленный сервер не отвечает, дальнейшая работа невозможна! $NONE" | ||||
|     ["server_connection_is_slow"]="Соединение с сервером медленное" | ||||
|     ["checking_connection"]="$BLUE Проверяем соединение... $NONE" | ||||
|     ["command_not_found"]="$RED Нет такой команды! $NONE" | ||||
|     ["in_capital_letters_please"]="$YELLOW С большой буквы, пожалуйста! $NONE" | ||||
|     ["enter_router_password"]="$BLUE  Введите пароль от роутера: $NONE" | ||||
|     ["enter_router_login"]="$BLUE  Введите логин от роутера: $NONE" | ||||
|     ["router_ip_examples"]="$BLUE  Пример 192.168.1.1 или freize.net:22 $NONE" | ||||
|     ["enter_router_ip2"]="$BLUE  Введите IP роутера: $NONE" | ||||
|     ["enter_data"]="$BLUE  Введите данные $NONE" | ||||
|     ["trying_again"]="$BLUE Пытаемся снова ... $NONE" | ||||
|     ["telnet_access_has_been_granted"]="$BLUE Доступ по TELNET предоставлен... $NONE" | ||||
|     ["ssh_access_has_been_granted"]="$BLUE Доступ по SSH предоставлен... $NONE" | ||||
|     ["ssh_access_error"]="$RED Ошибка доступа SSH, перепроверьте... $NONE" | ||||
|     ["obtained_telnet_connection"]="$BLUE Получено подключение по telnet $NONE" | ||||
|     ["connected_to_devicex"]="$YELLOW Подключено к $deviceX $NONE" | ||||
|     ["connected_to_unknown_device_running_openwrt"]="$YELLOW Подключено к неизвестному устройству на OpenWrt $NONE" | ||||
|     ["connected_to_config_firmware_product_id"]="$YELLOW Подключено к $CONFIG_FIRMWARE_PRODUCT_ID $NONE" | ||||
|     ["connected_to_mi_mini"]="$GREEN Подключено к MI роутеру$NONE" | ||||
|     ["login_n_pass_couldnt_be_empty"]="$RED Логин и Пароль не могут быть пустыми! $NONE" | ||||
|     ["you_entered_wrong_routerip_or_one_not_connected"]="$RED Возможно вы ошиблись с IP адресом роутера или он не подключен $NONE" | ||||
|     ["maybe_ssh_connection_forbidden"]="$RED Возможно запрещено подключение по SSH, проверьте в настройках роутера! $NONE" | ||||
|     ["invalid_login_or_password"]="$RED Логин или пароль неверен! $NONE" | ||||
|     ["connection_settings"]="$BLUE Параметры подключения $NONE" | ||||
|     ["sources_error2"]="$BLUE Исходный код:$NONE$RED ERROR $NONE" | ||||
|     ["sources_error"]="$BLUE Исходный код,$NONE$RED ERROR $NONE" | ||||
|     ["checking_loaded_files"]="$BLUE Проверяем загрузку... $NONE" | ||||
|     ["loading_sources"]="$BLUE Загружаем исходный код... $NONE" | ||||
|     ["you_want_to_continue"]=" Продолжить? (y/n) " | ||||
|     ["unrecognized_router"]="$RED Неопознанная версия роутера $GREEN$platform $BLUE($version $revision) SN=$GREEN$serial $BLUE($memory) $NONE" | ||||
|     ["getting_router_info"]="$BLUE Получаем информацию о роутере $NONE" | ||||
|     ["init_router"]="$BLUE Инициализируем роутер (может занять до 30сек) $NONE" | ||||
|     ["wrong_pass_or_ipaddr"]="$RED Возможно введен неверный пароль или IP адрес $NONE" | ||||
|     ["logging_to_webui"]="$BLUE Логинимся в web админку $NONE" | ||||
|     ["enter_pass_from_linux_account"]="$YELLOW Требуется ввести пароль от вашей учетной записи в Linux. $NONE" | ||||
|     ["no_connection_with_router"]="$RED Нет соединения с роутером $NONE" | ||||
|     ["connecting_to_router"]="$BLUE Подключаемся к роутеру по адресу $IP $NONE" | ||||
|     ["bad_pass"]="$RED Недопустимый пароль. Введите другой $NONE" | ||||
|     ["webui_pass"]="$BLUE Пароль от WEB админки: $NONE" | ||||
|     ["enter_router_ip"]="$BLUE Введите IP роутера (192.168.31.1 по-умолчанию): $NONE" | ||||
|     ["you_want_to_continue_task"]=" Продолжить операцию? (y/n) " | ||||
|     ["source_code_patch_is_good"]="$GREEN Патч исходного кода актуален, сборка безопасна. $NONE" | ||||
|     ["source_code_patch_is_bad"]="$RED Патч исходного кода НЕ СООТВЕТСТВУЕТ, сборка может завершиться с ошибкой! " | ||||
|     ["dont_ask_questions_without_logs"]="$RED Без логов выше вопросы на форуме не задавать! $NONE" | ||||
|     ["toolchain_error"]="$BLUE В процессе сборки Toolchain произошла ошибка! $NONE" | ||||
|     ["building_toolchain"]="$BLUE Собираем toolchain... $NONE" | ||||
|     ["enter_yes_no"]=" Пожалуйста введите yes или no." | ||||
|     ["toolchain_build_canceled"]="$BLUE Сборка Toolchain отменена! $NONE" | ||||
|     ["toolchain_build_started"]="$BLUE Сборка Toolchain запущена... $NONE" | ||||
|     ["rebuild_toolchain"]=" Пересобрать Toolchain? " | ||||
|     ["checking_installed_themes"]="$BLUE Проверяем установленные темы... $NONE" | ||||
|     ["updating_skins"]="$BLUE Восстанавливаем и обновляем скины... $NONE" | ||||
|     ["updating_source_code"]="$BLUE Обновляем исходный код... $NONE" | ||||
|     ["revert_classic_skin"]="$BLUE Возвращаем класический скин... $NONE" | ||||
|     ["skins_found"]="$BLUE Найдены скины $NONE" | ||||
|     ["ssh_access_established"]="$YELLOW Доступ по SSH предоставлен... $NONE" | ||||
|     ["ssh_access_not_established"]="$YELLOW Доступ по SSH не получен, просто завершаем скрипт... $NONE" | ||||
|     ["rebooting_router"]="$YELLOW Перезагружаем роутер и завершаем скрипт! $NONE" | ||||
|     ["press_to_proceed"]="$RED Для продолжения нажмите любую кнопку... $NONE" | ||||
|     ["skins_screen_select_item"]="$BLUEПожалуйста введите номер желаемого пункта $NONE" | ||||
|     ["white_theme_off"]="$NONE 6. Белая тема               [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["white_theme_on"]="$NONE 6. Белая тема               [0.2 MB] [$GREEN0$on$NONE]" | ||||
|     ["yellow_theme_off"]="$NONE 5. Желтая тема              [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["yellow_theme_on"]="$NONE 5. Желтая тема              [0.2 MB] [$GREEN0$on$NONE]" | ||||
|     ["dark_blue_theme_off"]="$NONE 4. Синяя тема (темная)      [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["dark_blue_theme_on"]="$NONE 4. Синяя тема (темная)      [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["blue_theme_off"]="$NONE 3. Голубая тема             [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["blue_theme_on"]="$NONE 3. Голубая тема             [0.4 MB] [$GREEN0$on$NONE]" | ||||
|     ["grey_theme_vector_off"]="$NONE 2. Серая тема (вектор)      [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["grey_theme_vector_on"]="$NONE 2. Серая тема (вектор)      [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["grey_theme_off"]="$NONE 1. Серая тема               [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["grey_theme_on"]="$NONE 1. Серая тема               [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["skins_core_off"]="$NONE 0. Основа скинов            [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["skins_core_on"]="$NONE 0. Основа скинов            [0.4 MB] [$GREEN0$on$NONE]" | ||||
|     ["available_skins"]="$BLUE Следующие скины подключены:$NONE" | ||||
|     ["select_module"]=" Выберите номер модуля, который вы хотите запустить: " | ||||
|     ["available_modules"]="$BLUE Доступны следующие модули: $NONE" | ||||
|     ["skin_full_tp2"]="$BLUE Скин:    $NONE $YELLOW    FULL-TP $NONE" | ||||
|     ["skin_full_tp"]="$BLUE Скин:$NONE$YELLOW FULL-TP$NONE" | ||||
|     ["skin_original2"]="$BLUE Скин:    $NONE $GREEN    ORIGINAL $NONE" | ||||
|     ["skin_original"]="$BLUE Скин:$NONE$GREEN ORIGINAL$NONE" | ||||
|     ["skin_lite_tp2"]="$BLUE Скин:    $NONE $YELLOW    LITE-TP $NONE" | ||||
|     ["skin_lite_tp"]="$BLUE Скин:$NONE$YELLOW LITE-TP$NONE" | ||||
|     ["installing_software"]="$YELLOW Устанавливаем ПО, требуется ввести пароль от $NONE" | ||||
|     ["from_your_linux_account"]="$YELLOW вашей учетной записи в Linux. $NONE" | ||||
|     ["selected_config"]="$RED Выбран ${CONFIGN[$yn]} $NONE" | ||||
|     ["select_existed_config"]="$RED Пожалуйста введите сушествующий $NONE" | ||||
|     ["select_config"]=" Выберите номер конфига который вы хотите использовать " | ||||
|     ["configs_to_choose"]="$BLUE Доступны следующие файлы конфигов для сборки: $NONE" | ||||
|     ["xrmwrt_patch_ok"]="$BLUE Патч XRMWRT: $NONE$GREEN OK $NONE" | ||||
|     ["source_code_not_found"]="$BLUE Исходный код:$NONE$YELLOW ОТСУТСТВУЕТ $NONE" | ||||
|     ["source_code_ok"]="$BLUE Исходный код:$NONE$YELLOW $GITCOMMIT $NONE" | ||||
|     ["directories_not_found"]="$BLUE Каталоги:$NONE$YELLOW     ОТСУТСТВУЮТ $NONE" | ||||
|     ["directories_ok"]="$BLUE Каталоги:$NONE$GREEN     OK $NONE" | ||||
|     ["dependencies_ok"]="$BLUE Зависимости: $NONE$GREEN OK$NONE" | ||||
|     ["no_internet_connection"]="$RED Нет соединения с интернетом, дальнейшая работа невозможна! $NONE" | ||||
|     ["config_ok"]="$BLUE Конфиг:$NONE$GREEN       OK $NONE" | ||||
|     ["slow_connection"]="Соединение с интернетом медленное" | ||||
|     ["scripts_ok"]="$BLUE Скрипты:$NONE$GREEN      OK $NONE" | ||||
|     ["editor_warning_msg"]="$RED Измените открывшийся файл, решетка перед\n параметром его выключает...$NONE" | ||||
|     ["autoeditor_bottom2"]="$NONE (F)AQ (Q)uit $NONE\n\n$BLUE Пожалуйста введите номер желаемого пункта $NONE" | ||||
|     ["autoeditor_bottom1"]="$NONE (F)AQ (Q)uit Follo(W)ing (O)penSSL $NONE\n\n$BLUE Пожалуйста введите номер желаемого пункта $NONE" | ||||
|     ["autoeditor_title"]="$BLUE В конфиге действуют следующие параметры:$NONE\n--------------------------------------------------------------------" | ||||
|     ["faq_screen_menu3"]="$YELLOW Откатить все изменения       (S) - восстанавливает бэккап стока.$NONE" | ||||
|     ["faq_screen_menu2"]="$YELLOW Прошить патч EEPROM          (6) - делается один раз в жизни.$NONE" | ||||
|     ["please_enter_number_of_desired_language"]="$NONE-------------------------------------------------------------------------------$RED | ||||
|  Пожалуйста, введите номер желаемого пункта " | ||||
|     ["list_of_available_languages"]="$BLUE Доступны следующие языки интерфейса: $NONE | ||||
| $NONE-------------------------------------------------------------------------------" | ||||
|     ["entware_module_header"]="$BLUE Данный модуль дает возможность заупускать Entware без внешнего накопителя. $NONE | ||||
| $BLUE Для работы модуля требуется подключенный роутер с настроенным Entware. $NONE | ||||
| $RED В прошивке применяется 5 кратное сжатие. | ||||
|  Т.е. 30Мб Entware добавят 6Мб к прошивке. $NONE" | ||||
|     ["tor_privoxy_module_header"]="$BLUE Модуль добавления TOR&PRIVOXY&DNSCRYPT в исходный код прошивки запущен! $NONE | ||||
| $RED Обратите внимание, что модуль требует определенной версии прошивки! | ||||
|  После применения, версия прошивки будет изменена! $NONE | ||||
| $BLUE После установки вы можете выбрать, какое программное обеспечение вы хотите включить, отредактировав файл конфигурации. $NONE" | ||||
|     ["you_dont_have_to_change_opened_file"]="$RED Открывшийся файл можно не менять. | ||||
|  define - активно, undef - пассивно.$NONE" | ||||
|     ["router_will_be_available_on_next_address_dont_forget_turn_on_ssh"]="$BLUE Роутер будет доступен (после перезагрузки) по адресу 192.168.1.1, | ||||
|  логин - admin, пароль - admin; WiFi сеть - ASUS, | ||||
|  пароль по умолчанию - 1234567890. | ||||
|  Не забудьте включить доступ по SSH для обновлений прошивки. | ||||
|  Настройки при перепрошивке не сбрасываются... $NONE" | ||||
|     ["uboot_screen_menu_other_routers"]="  Пожалуйста введите номер желаемого пункта: | ||||
|   Установить/обновить U-BOOT   (1) | ||||
|   Собрать U-BOOT из исходников (2) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["uboot_screen_menu_mi_mini"]="  Пожалуйста введите номер желаемого пункта: | ||||
|   Установить/обновить U-BOOT   (1) | ||||
|   Собрать U-BOOT из исходников (2) | ||||
|   Откатить U-BOOT на стоковый  (3) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["uboot_screen_menu_mi_3"]="  Пожалуйста введите номер желаемого пункта: | ||||
|   Установить/обновить U-BOOT   (1) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["your_firmware_destroyed_in_safety_precautions"]="$RED Ваша прошивка уничтожена в целях безопасности! | ||||
|  Измените конфигурацию и пересоберите ее.$NONE" | ||||
|     ["restore_backup_warning"]="$RED Предупреждение! $NONE | ||||
| $BLUE Если что-то пойдет не так, не спешите перезагружать роутер, повторяйте попытки пока не прошьется без ошибок. $NONE | ||||
| $BLUE После отката Роутер и его настройки вернутся в то состояние перед которым был сделан бэкап. $NONE | ||||
|  | ||||
| " | ||||
|     ["faq_screen_menu"]="$YELLOW Пожалуйста, выберите нужный пункт. Если не знаете какой, нажимайте | ||||
|  все подряд, сверху и донизу. Только перекреститься не забудьте... | ||||
|  | ||||
|  Обновить скрипты             (1) - обновит скрипт, но сбросит настройки. | ||||
|  Обновить исходный код        (2) - нужен для обнов., делать перед 3 и 4. | ||||
|  Собрать Toolchain            (3) - нужен для обнов., раз в месяц не чаще. | ||||
|  Прошить Firmware             (4) - заливает прошивку в роутер. | ||||
|  U-Boot                       (5) - загрузочный сектор.$NONE" | ||||
|     ["firmware_uploaded_into_router_do_flashing"]="$BLUE Прошивка загружена на роутер... $NONE | ||||
| $BLUE Прошиваем... $NONE | ||||
| $BLUE Роутер будет доступен (после перезагрузки) по адресу 192.168.1.1, | ||||
|  логин - admin, пароль - admin; WiFi сеть - ASUS, | ||||
|  пароль по умолчанию - 1234567890. | ||||
|  Не забудьте включить доступ по SSH для обновлений прошивки. | ||||
|  Настройки при перепрошивке не сбрасываются... $NONE" | ||||
|     ["enable_ssh_and_enter_data_from_xiaomi_site_or_xrmwrt_webui"]="$YELLOW Для заводской прошивки введите данные с сайта xiaomi, а для xrmwrt | ||||
|  укажите логин и пароль от веб интерфейса, предварительно включив | ||||
|  доступ по SSH в админке. $NONE" | ||||
|     ["connection_screen_menu"]="------------------------------------------------------------------------------- | ||||
|  Данные параметры верны? | ||||
|  Введите ответ: | ||||
|  Данные верны    (1) | ||||
|  Обновить данные (2) | ||||
|                  (F)AQ | ||||
|                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["update_prometheus_menu"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер желаемого пункта: | ||||
|   Обновить до стабильного      (1) | ||||
|   Обновить до тестового        (2) | ||||
|   Обновить только патч         (3) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер желаемого пункта: | ||||
|   Автоматический редактор      (1) | ||||
|   Редактировать config в cm    (2) | ||||
|   Сбросить все правки          (3) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_wt3020"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер желаемого пункта: | ||||
|   Автоматический редактор      (1) | ||||
|   Редактировать config в cm    (2) | ||||
|   Сбросить все правки          (3) | ||||
|   Заменить кнопку Reset на WPS (4) [ Программируется ] | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер желаемого пункта: | ||||
|   Автоматический редактор      (1) | ||||
|   Редактировать config в mc    (2) | ||||
|   Сбросить все правки          (3) | ||||
|   Заменить кнопку Reset на WPS (4) | ||||
|   Включить RED LED для WAN     (5) [ Программируется ] | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["firmware_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер желаемого пункта: | ||||
|   Изменить config сборки       (1) | ||||
|   Применить скины              (2) | ||||
|   Собрать Firmware             (3) | ||||
|   Прошить Firmware             (4) | ||||
|   Выбрать из архива прошивок   (5) | ||||
|   Очистить архив прошивок      (6) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["firmware_screen_menu_mi_3"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер желаемого пункта: | ||||
|   Изменить config сборки       (1) | ||||
|   Применить скины              (2) | ||||
|   Собрать Firmware             (3) | ||||
|   Прошить Firmware             (4) | ||||
|   Выбрать из архива прошивок   (5) | ||||
|   Очистить архив прошивок      (6) | ||||
|   Форматировать RWFS           (7) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["settings_screen_menu"]=" | ||||
| $BLUE  Авторы скрипта: Freize, Yadoff, Firsthash. | ||||
|   Контакты: is@freize.net | ||||
|   Сайт: http://prometheus.freize.net/ $NONE | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер желаемого пункта: | ||||
|   Выбрать конфиг роутера       (1) | ||||
|   Удалить конфиг роутера       (2) | ||||
|   Активировать модули          (3) | ||||
|   Выбрать язык                 (4) | ||||
|   Изменить настройки SSH       (5) | ||||
|   Выбрать репозиторий          (6) | ||||
|                                (F)AQ | ||||
|                                (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["prometheus_header"]="-------------------------------------------------------------------------------$BLUE | ||||
|   $NONE$GREEN                          PROMETHEUS $NONE$BLUE | ||||
|   $NONE$RED                 Версия скрипта: $PROMETHEUS2$PROMETHEUS3 $stable $NONE$BLUE | ||||
|   Prometheus - пакет скриптов по обслуживанию и прошивке роутера. | ||||
|   Конфиг роутера: $GREEN$CONFIG_FIRMWARE_PRODUCT_ID$BLUE SN: $YELLOW$SSHTOK$BLUE GIT$GITOK$YELLOW$GITCOMMIT$BLUE | ||||
|  $ST52$FIRM$SKIN$NONE | ||||
| " | ||||
|     ["main_screen_menu_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер или букву желаемого пункта. | ||||
|   Подготовка: | ||||
|     Обновить скрипты             (1) | ||||
|     Обновить исходный код        (2) | ||||
|     Собрать Toolchain            (3) | ||||
|   Сборка и установка: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ВНИМАНИЕ! Роутер может быть повреждён!] | ||||
|     EEPROM                       (6)  [      Делается 1 раз и навсегда       ] | ||||
|     Настройки скрипта            (S)ettings | ||||
|     Восстановить бэкап          s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер или букву желаемого пункта. | ||||
|   Подготовка: | ||||
|     Хак SSH стоковой прошивки    (0)  [      Экспериментальная функция       ] | ||||
|     Обновить скрипты             (1) | ||||
|     Обновить исходный код        (2) | ||||
|     Собрать Toolchain            (3) | ||||
|   Сборка и установка: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ВНИМАНИЕ! Роутер может быть повреждён!] | ||||
|     EEPROM                       (6)  [      Делается 1 раз и навсегда       ] | ||||
|     Настройки скрипта            (S)ettings | ||||
|     Восстановить бэкап          s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_mi_3"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер или букву желаемого пункта. | ||||
|   Подготовка: | ||||
|     Обновить скрипты             (1) | ||||
|     Обновить исходный код        (2) | ||||
|     Собрать Toolchain            (3) | ||||
|   Сборка и установка: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ВНИМАНИЕ! Роутер может быть повреждён!] | ||||
|     EEPROM                       (6)  [      Делается 1 раз и навсегда       ] | ||||
|     Настройки скрипта            (S)ettings | ||||
|     Восстановить бэкап          s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_3"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер или букву желаемого пункта. | ||||
|   Подготовка: | ||||
|     Хак SSH стоковой прошивки    (0)  [      Экспериментальная функция       ] | ||||
|     Обновить скрипты             (1) | ||||
|     Обновить исходный код        (2) | ||||
|     Собрать Toolchain            (3) | ||||
|   Сборка и установка: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ВНИМАНИЕ! Роутер может быть повреждён!] | ||||
|     EEPROM                       (6)  [      Делается 1 раз и навсегда       ] | ||||
|     Настройки скрипта            (S)ettings | ||||
|     Восстановить бэкап          s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_mi_nano"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер или букву желаемого пункта. | ||||
|   Подготовка: | ||||
|     Обновить скрипты             (1) | ||||
|     Обновить исходный код        (2) | ||||
|     Собрать Toolchain            (3) | ||||
|   Сборка и установка: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ВНИМАНИЕ! Роутер может быть повреждён!] | ||||
|     Настройки скрипта            (S)ettings | ||||
|     Восстановить бэкап          s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_nano"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер или букву желаемого пункта. | ||||
|   Подготовка: | ||||
|     Хак SSH стоковой прошивки    (0)  [      Экспериментальная функция       ] | ||||
|     Обновить скрипты             (1) | ||||
|     Обновить исходный код        (2) | ||||
|     Собрать Toolchain            (3) | ||||
|   Сборка и установка: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ВНИМАНИЕ! Роутер может быть повреждён!] | ||||
|     Настройки скрипта            (S)ettings | ||||
|     Восстановить бэкап          s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   Пожалуйста введите номер или букву желаемого пункта. | ||||
|   Подготовка: | ||||
|     Обновить скрипты             (1) | ||||
|     Обновить исходный код        (2) | ||||
|     Собрать Toolchain            (3) | ||||
|   Сборка и установка: | ||||
|     Firmware                     (4) | ||||
|     U-Boot                       (5)  [ВНИМАНИЕ! Роутер может быть повреждён!] | ||||
|     Настройки скрипта            (S)ettings | ||||
|     Восстановить бэкап          s(T)ok | ||||
|                                  (F)AQ | ||||
|                                  (Q)uit | ||||
| -------------------------------------------------------------------------------" | ||||
| ) | ||||
							
								
								
									
										538
									
								
								scripts/messages/messages_zh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										538
									
								
								scripts/messages/messages_zh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,538 @@ | ||||
| dictionary=( | ||||
|     ["select_the_version_of_the_repository"]="$BLUE Please select the version of the repository: $NONE" | ||||
|     ["cleaning_is_launched"]="$BLUE 注意! 强烈建议清理源代码. " | ||||
|     ["available_patchs"]="$BLUE 下列补丁可用: $NONE" | ||||
|     ["select_patch"]="请选择需要应用的补丁编号: " | ||||
|     ["patchs_are_absent"]="$RED 补丁丢失! 补丁不包含在此脚本的标准包中. 你可能需要升级此模块来获取补丁. $NONE" | ||||
|     ["patch_has_been_added"]="$GREEN 补丁已成功应用. $NONE" | ||||
|     ["mi3_recovery_confirm"]="$RED 你的路由器将会进入恢复模式. 你需要一个含有原始固件 (miwifi.bin) 的 U 盘来恢复它. $NONE" | ||||
|     ["please_enter_the_first_mac"]="$BLUE 请输入主 MAC 地址:" | ||||
|     ["please_enter_the_second_mac"]="$BLUE 请输入次 MAC 地址:" | ||||
|     ["selected_mac"]="$BLUE MAC 地址已接受! $NONE" | ||||
|     ["select_existed_mac"]="$RED 请输入一个有效的 MAC 地址. | ||||
| $BLUE 例如: DD:AF:E2:01:2A:65$NONE" | ||||
|     ["mac_addresses_selected"]="$BLUE 已选择下列 MAC 地址: | ||||
|  WAN/WLAN 2.4 : $YELLOW$MAC1$BLUE | ||||
|  LAN/WLAN 5   : $YELLOW$MAC2$NONE" | ||||
|     ["addresses_have_changed"]="$RED MAC 地址已成功更新. $NONE" | ||||
|     ["confirm_the_input_addresses"]="$RED 你确定要更新 MAC 地址吗? (y/n) $NONE" | ||||
|     ["you_want_to_delete_config"]="$RED 你确定要删除 $GREEN$CONFIG_FIRMWARE_PRODUCT_ID$RED 配置? (y/n) $NONE" | ||||
|     ["i_understand_and_agree"]="$RED 你确定要刷入吗? (y/n) $NONE" | ||||
|     ["ids_comparison"]="$BLUE 发生认证错误, 请检查下列数据: | ||||
|  固件:   $RED$FFM$BLUE | ||||
|  路由器: $RED$rt_hostname$BLUE | ||||
|  配置:   $RED$CONFIG_FIRMWARE_PRODUCT_ID$BLUE | ||||
|  此数据可能与原版固件有差异, 是正常的.$NONE" | ||||
|     ["source_code_download_error"]="$RED 下载源代码时出现错误! $NONE" | ||||
|     ["software_installation_error"]="$RED 软件安装错误! $NONE" | ||||
|     ["incorrect_configuration"]="$RED 出现了一个错误. 配置不正确. 正在终止操作... $NONE" | ||||
|     ["tor_patch_not_applied"]="$RED 没有应用补丁. 正在终止操作... $NONE" | ||||
|     ["select_mtd"]=" 请输入分区编号: " | ||||
|     ["available_mtd"]="$BLUE 可用的分区列表: $NONE" | ||||
|     ["mtd_has_been_selected"]="$GREEN ${MTDS[$yn]} 已被选择用于安装 $NONE" | ||||
|     ["insert_usb_flash_drive"]="$RED 请在路由器的 USB 接口上插入一个含有原始固件 (miwifi.bin) 的 U 盘然后短按重置键. $NONE" | ||||
|     ["error_firmware_1"]="$RED 警告! 即将通过 Web 界面刷入工厂固件! 不要重启路由器! $NONE" | ||||
|     ["entware_mounted"]="$GREEN Entware 挂载成功! $NONE" | ||||
|     ["error_occured_so_removing_module"]="$RED $error_text...正在移除模块 $NONE" | ||||
|     ["cleaning_router_temp_directory"]="$GREEN 正在清理路由器的临时目录... $NONE" | ||||
|     ["copying_entware_from_router_to_firmware"]="$GREEN 正在从路由器复制 Entware 到固件... $NONE" | ||||
|     ["compressing_router_entware"]="$GREEN 正在压缩路由器的 Entware... $NONE" | ||||
|     ["cant_get_access_to_the_router"]="无法访问路由器" | ||||
|     ["testing_router_connection"]="$GREEN 正在检查到路由器的连接... $NONE" | ||||
|     ["router_access_params_is_abc"]="$BLUE 路由器访问参数为: 用户=$ROOTWRT, 密码=$PWDR, IP=$IPWRT $NONE" | ||||
|     ["removing_entware_patch"]="$GREEN 正在移除 Entware 补丁... $NONE" | ||||
|     ["applying_entware_patch"]="$GREEN 正在应用 Entware 补丁... $NONE" | ||||
|     ["paragon_ntfs_driver_has_been_added"]="$BLUE 已成功应用 Paragon NTFS 驱动... $NONE" | ||||
|     ["cleaning_sources"]="$BLUE 正在清理源代码... $NONE" | ||||
|     ["do_you_want_to_clean_up"]=" 你要清理源代码吗? (y/n) " | ||||
|     ["cleaning_module_is_launched"]="$BLUE 已开始清理! $RED" | ||||
|     ["resetting_module_settings"]="$BLUE 正在重置模块设置... $NONE" | ||||
|     ["adding_module_to_config_ok"]="$BLUE 添加模块到配置$GREEN 成功 $NONE" | ||||
|     ["removing_module_from_config_ok"]="$BLUE 从配置中移除模块$GREEN 成功 $NONE" | ||||
|     ["tor_privoxy_patch_has_been_removed"]="$GREEN TOR&PRIVOXY&DNSCRYPT 补丁已移除! $NONE" | ||||
|     ["moving_module_patch"]="$BLUE 正在移动模块补丁... $NONE" | ||||
|     ["adding_module_update_fix"]="$BLUE 正在添加模块更新修复... $NONE" | ||||
|     ["applying_tor_privoxy_patch"]="$BLUE 正在应用 TOR&PRIVOXY&DNSCRYPT 补丁... $NONE" | ||||
|     ["please_before_module_deletion_update_sources"]="$BLUE 请在移除模块前更新源代码! $NONE" | ||||
|     ["module_has_been_deactivated"]="$GREEN 此模块已禁用! $NONE" | ||||
|     ["preparing_module_patch"]="$BLUE 正在准备模块补丁... $NONE" | ||||
|     ["module_operation_canceled"]="$GREEN 正在取消... $NONE" | ||||
|     ["module_already_installed_do_you_want_to_remove"]="$RED 此模块已安装. 你要移除它吗? (y/n)  $NONE" | ||||
|     ["do_you_want_to_install_module"]="$RED 你要安装这个模块吗? (y/n)  $NONE" | ||||
|     ["languages_have_been_lost"]="$RED 糟糕! 没有任何语言可供选择... $NONE" | ||||
|     ["selected_language_is_abc"]="$RED 界面语言: ${CONFIGN[$yn]} $NONE" | ||||
|     ["please_select_existed_language"]="$RED 请选择一个存在的项目 $NONE" | ||||
|     ["cancel_archive_backup"]="$BLUE Q) 取消 $NONE" | ||||
|     ["cleaning_update"]="$BLUE 正在清理更新... $NONE" | ||||
|     ["decompressing_update"]="$BLUE 正在解压更新... $NONE" | ||||
|     ["downloading_update"]="$BLUE 正在下载更新... $NONE" | ||||
|     ["activate_item_with_number_or_return_with_q"]="$YELLOW 输入项目序号来启用/禁用或按 Q 返回.$NONE" | ||||
|     ["you_can_build_uboot_only_on_x86_machine"]="$YELLOW 请注意, 只能在 x86 电脑上构建 U-Boot.$NONE" | ||||
|     ["archive_file_is_absent_please_update_script"]="$RED 归档文件不存在, 请更新脚本$NONE" | ||||
|     ["archive_file_is_corrupted_please_update_script"]="$RED 归档文件已损坏, 请更新脚本$NONE" | ||||
|     ["changes_will_be_applied_after_reboot"]="$BLUE 所有更改将在重启后应用... $NONE" | ||||
|     ["action_has_been_canceled_because_of_copy_error"]="$RED 因为复制错误, 操作已取消. 请再试一次. $NONE" | ||||
|     ["do_you_want_to_flash_stock_uboot"]=" 你要刷入原始 U-Boot 吗? (y/n) " | ||||
|     ["uboot_isnt_found"]="$RED 找不到 U-Boot! $NONE" | ||||
|     ["your_uboot_has_actual_version"]="$GREEN U-Boot 已是最新! $NONE" | ||||
|     ["update_canceled"]="$BLUE 更新已取消. $NONE" | ||||
|     ["dont_reboot_your_router_if_you_have_stock_firmware"]="$BLUE 如果路由器是原始固件, 请不要重启... $NONE $BLUE" | ||||
|     ["dont_reboot_your_router_until_bootloader_will_be_flashed_successfully"]="$BLUE 在 U-Boot 成功刷入之前 $RED 请不要重启 $BLUE 路由器!!! $NONE" | ||||
|     ["newer_bootloader_with_version_abc_has_been_found"]="$RED 检测到新的bootloader: $uboot_new_version $NONE $BLUE" | ||||
|     ["current_bootloader_version_is_abc"]="$BLUE 目前 bootloader 的版本是 $uboot_old_version $NONE" | ||||
|     ["preparing_uboot"]="$BLUE 正在准备 U-Boot... $NONE" | ||||
|     ["do_you_want_to_flash_uboot"]=" 你要刷入 U-Boot 吗? (y/n) " | ||||
|     ["uboot_has_been_uploaded_to_the_router"]="$BLUE uboot.bin 文件已成功上传到路由器... $NONE" | ||||
|     ["uboot_assembled"]="$GREEN U-Boot 已编译! $NONE" | ||||
|     ["configs_have_been_lost"]="$RED 糟糕! 配置文件丢失... $NONE" | ||||
|     ["dumping_partition_to_path_abc"]="$BLUE 正在转存 /dev/$mtd 到 $SNAPSHOT  $NONE" | ||||
|     ["sources_have_been_patched"]="$BLUE 补丁,$NONE$GREEN 正常 $NONE" | ||||
|     ["please_try_again"]="$BLUE 请再试一次 $NONE" | ||||
|     ["unfortunately_something_goes_wrong"]="$RED 很可惜出了一些错误 $NONE" | ||||
|     ["access_parameters_for_ssh_are_abc"]="$BLUE SSH 访问参数:  $RED IP: $GREEN$IP   $RED 用户名:$GREEN root   $RED 密码: $GREEN$password $NONE" | ||||
|     ["congratulations_you_have_obtained_ssh_access"]="$GREEN 恭喜!!! ${BLUE} 已成功获取 SSH 访问权限$NONE" | ||||
|     ["checking_ssh_access"]="$BLUE 正在检查 SSH 访问$NONE" | ||||
|     ["launching_ssh"]="$BLUE 正在启动 SSH $NONE" | ||||
|     ["telnet_has_been_launched"]="$GREEN Telnet 已启动 $NONE" | ||||
|     ["launch_error_is_abc"]="$RED 启动错误: $BLUE$result$NONE" | ||||
|     ["launching_telnet_on_router"]="$BLUE 正在路由器上启动 telnet $NONE" | ||||
|     ["your_ssh_telnet_password_is_abc"]="$BLUE 你的 ssh/telnet 密码是 $GREEN$password$NONE" | ||||
|     ["founded_router_version_is_abc"]="$BLUE 找到路由器: $GREEN$platform $BLUE($version $revision) SN=$GREEN$serial $BLUE($memory) $NONE" | ||||
|     ["checkpoint_has_been_created"]="$NONE$GREEN 已保存当前状态 $NONE" | ||||
|     ["do_you_want_to_create_current_state_checkpoint"]=" 你要保存当前状态吗? (y/n) " | ||||
|     ["backup_has_been_saved_to_selected_directory"]="$GREEN 已保存备份到 MTD_BACKUP_$CONFIG_FIRMWARE_PRODUCT_ID/$SNAPSHOT $NONE$RED" | ||||
|     ["something_goes_wrong_unable_to_create_backup"]="$RED 出了一些错误, 无法保存备份! $NONE" | ||||
|     ["preparing_partitions_backup"]="$BLUE 正在准备备份分区... $NONE" | ||||
|     ["do_you_want_create_backup_of_all_partitions"]=" 你要备份所有分区吗? (y/n) " | ||||
|     ["checking_eeprom"]="$BLUE 正在检查 EEPROM... $NONE" | ||||
|     ["eeprom_already_has_been_patched_there_is_no_need_to_do_it_again"]="$GREEN EEPROM 已经打过补丁! 不需要再进行一次. $NONE" | ||||
|     ["keeping_eeprom_in_its_original_state"]="$BLUE EEPROM 未改动... $NONE" | ||||
|     ["uploading_eeprom"]="$BLUE 正在上传 EEPROM... $NONE" | ||||
|     ["do_you_want_to_flash_eeprom"]=" 你要刷入 EEPROM 吗? (y/n) " | ||||
|     ["do_you_want_to_do_it_now"]="$BLUE" | ||||
|     ["stock_eeprom_has_been_found_its_recommended_apply_patch"]="$RED 检测到原始 EEPROM, 强烈建议应用补丁!  $NONE" | ||||
|     ["file_doesnt_exist_or_empty"]="$RED 文件无法找到或者为空!!! $NONE" | ||||
|     ["in_every_unknown_situation_press_3"]="$YELLOW 如果你不确定请按 3.$NONE" | ||||
|     ["in_every_unknown_situation_press_1"]="$YELLOW 如果你不确定请按 1.$NONE" | ||||
|     ["something_has_been_deleted"]="$YELLOW 档案已被清理. $NONE" | ||||
|     ["action_has_been_canceled"]="$BLUE 操作已取消. $NONE" | ||||
|     ["router_has_been_flashed_successfully"]="$GREEN 路由器刷机成功... $NONE $BLUE" | ||||
|     ["flashing_firmware"]="$BLUE 正在刷入... $NONE" | ||||
|     ["detecting_partition"]="$BLUE 正在检测分区... $NONE" | ||||
|     ["checking_checksum"]="$BLUE 正在检查校验和... $NONE" | ||||
|     ["error_occured_during_firmware_uploading"]="$RED 上传固件时出现错误... $NONE" | ||||
|     ["rebooting_router_wait_20_seconds"]="$BLUE 正在重启路由器, 请等待 20 秒... $NONE" | ||||
|     ["rebooting_router_wait_50_seconds"]="$BLUE 正在重启路由器, 请等待 50 秒... $NONE" | ||||
|     ["unsupported_router"]="$RED 不支持的路由器! $NONE" | ||||
|     ["do_you_want_reboot_router"]=" 你要重启路由器吗? (y/n) " | ||||
|     ["flashing_completed"]="$BLUE 刷写完成... $NONE" | ||||
|     ["resetting_sources_to_initial_state"]="$BLUE 正在恢复源代码到初始状态... $NONE" | ||||
|     ["do_you_want_restore_sources"]=" 你要恢复源代码吗? (y/n) " | ||||
|     ["looks_like_error_happened_in_middle_of_compilation"]="$BLUE 编译时出现错误! $NONE" | ||||
|     ["your_firmware_fits_allowed_size"]="$GREEN 固件 $FFM 的大小为 $firmware_size 字节, 符合最大允许的大小 $max_allowed_size 字节 $NONE" | ||||
|     ["your_firmware_exceeds_allowed_size"]="$RED 警告! 固件 $FFM 的大小为 $firmware_size 字节, 不符合最大允许的大小 $max_allowed_size 字节 $NONE" | ||||
|     ["building_firmware"]="$BLUE 正在构建固件... $NONE" | ||||
|     ["do_you_want_try_fast_build"]=" 你要尝试快速构建 (可能导致错误) 还是退出? (y/n/q) " | ||||
|     ["fast_build_available_only_for_same_source_version"]="$BLUE 快速构建只可用于相同的源代码版本.$NONE $RED" | ||||
|     ["you_already_have_build_this_firmware"]="$BLUE 固件已经构建. $NONE" | ||||
|     ["modules_are_absent"]="$RED 模块不存在! $NONE" | ||||
|     ["module_has_been_selected"]="$GREEN 已选择 ${MODS[$yn]} $NONE" | ||||
|     ["selected_module_doesnt_support_updates"]="$RED $line 不支持更新. $NONE" | ||||
|     ["getting_update_for_selected_module"]="$BLUE 正在获取 $line 的更新 ... $NONE" | ||||
|     ["go_backward_key"]="$BLUE Q)  退出 $NONE" | ||||
|     ["update_modules_key"]="$BLUE U)  更新 $NONE" | ||||
|     ["script_will_be_restarted"]="$RED 脚本即将重启. $NONE" | ||||
|     ["ssh_connection_cant_be_established"]="$RED 无法建立 SSH 连接! $NONE" | ||||
|     ["uploading_storage"]="$BLUE 正在上传存储... $NONE" | ||||
|     ["uploading_firmware"]="$BLUE 正在上传固件... $NONE" | ||||
|     ["uploading_factory"]="$BLUE 正在上传工厂数据... $NONE" | ||||
|     ["flashing_backup"]="$BLUE 正在刷入... $NONE" | ||||
|     ["done_now_you_must_reboot_your_router_manually"]="$BLUE 完成! 强烈建议立刻重启路由器... $NONE" | ||||
|     ["should_not_reboot_your_router_until_uboot_flashed_successfully"]="$RED 注意! 在 U-Boot 成功刷入之前请不要重启路由器! $NONE" | ||||
|     ["script_is_stopping_because_of_possibility_router_brick"]="$RED 因为可能损坏路由器, 脚本正在停止! $NONE" | ||||
|     ["uploading_uboot"]="$BLUE 正在上传 U-Boot... $NONE" | ||||
|     ["uploading_bootenv"]="$BLUE 正在上传 BootEnv... $NONE" | ||||
|     ["preparing_bootenv"]="$BLUE 正在准备 BootEnv... $NONE" | ||||
|     ["do_you_want_restore_uboot_from_backup_or_remain_one_unchanged"]=" 你要从备份恢复 U-Boot (Y), 还是保留现状 (N) " | ||||
|     ["do_you_want_restore_firmware_using_selected_file"]=" 你要使用文件 ${BACKUP[$I]} 恢复固件吗? " | ||||
|     ["please_enter_existed_backup"]="$RED 请输入存在的备份. $NONE" | ||||
|     ["restore_backup_canceled"]="$BLUE 取消... $NONE" | ||||
|     ["select_backup_that_you_want_to_flash"]=" 选择一个你要刷入的备份 " | ||||
|     ["restore_backup_quit"]="$BLUE Q) 取消 $NONE" | ||||
|     ["this_script_works_only_with_xrmwrt_firmware"]="$BLUE 此脚本只支持 XRMWRT 固件 $NONE" | ||||
|     ["backups_not_found"]="$RED 未找到备份... $NONE" | ||||
|     ["starting_tftp_server_enter_password"]="$YELLOW 正在启动 TFTP 服务器, $NONE" | ||||
|     ["firmware_size_cant_exceed_n_bytes"]="$YELLOW 固件大小必须符合最大允许的大小 $RED $mtd_max_size $YELLOW 字节 $NONE" | ||||
|     ["please_enter_yes_or_no"]="请输入 'yes' 或 'no'" | ||||
|     ["do_you_want_flash_anyway"]=" 你确定要刷入吗? (y/n) " | ||||
|     ["router_flashed_with_exactly_same_build"]="$RED 路由器已经刷入了相同的版本 $FFM... $NONE $BLUE" | ||||
|     ["you_dont_have_firmware"]="$BLUE 没有任何固件, 需要先构建一个. $NONE" | ||||
|     ["enter_existing_file"]="$RED 请输入存在的文件序号 $NONE" | ||||
|     ["canceling"]="$BLUE 已取消... $NONE" | ||||
|     ["select_build_that_you_want_to_flash"]="请选择你要刷入的固件: " | ||||
|     ["creating_directories"]="$BLUE 正在创建目录... $NONE" | ||||
|     ["better_use_stable_build"]="$YELLOW 如果你不确定, 请使用稳定版的.$NONE" | ||||
|     ["remote_server_doesnt_respond"]="$RED 远程服务器没有响应, 接下来的工作无法进行! $NONE" | ||||
|     ["server_connection_is_slow"]="到服务器的连接非常缓慢" | ||||
|     ["checking_connection"]="$BLUE 正在检查连接... $NONE" | ||||
|     ["command_not_found"]="$RED 没有找到命令! $NONE" | ||||
|     ["in_capital_letters_please"]="$YELLOW 请输入大写字母! $NONE" | ||||
|     ["enter_router_password"]="$BLUE  请输入路由器的密码: $NONE" | ||||
|     ["enter_router_login"]="$BLUE  请输入路由器的用户名: $NONE" | ||||
|     ["router_ip_examples"]="$BLUE  例如: 192.168.1.1 或 freize.net:22 $NONE" | ||||
|     ["enter_router_ip2"]="$BLUE  输入路由器的 IP 地址: $NONE" | ||||
|     ["enter_data"]="$BLUE  输入数据: $NONE" | ||||
|     ["trying_again"]="$BLUE 再次尝试... $NONE" | ||||
|     ["telnet_access_has_been_granted"]="$BLUE 已获得 Telnet 访问权限... $NONE" | ||||
|     ["ssh_access_has_been_granted"]="$BLUE 已获得 SSH 访问权限... $NONE" | ||||
|     ["ssh_access_error"]="$RED SSH 访问错误, 重新检查... $NONE" | ||||
|     ["obtained_telnet_connection"]="$BLUE 已建立 Telnet 连接 $NONE" | ||||
|     ["connected_to_devicex"]="$YELLOW 已连接到 $deviceX $NONE" | ||||
|     ["connected_to_unknown_device_running_openwrt"]="$YELLOW 已连接到一个运行 OpenWrt 的未知设备 $NONE" | ||||
|     ["connected_to_config_firmware_product_id"]="$YELLOW 已连接到 $CONFIG_FIRMWARE_PRODUCT_ID $NONE" | ||||
|     ["connected_to_mi_mini"]="$GREEN 已连接到 MI-MINI $NONE" | ||||
|     ["login_n_pass_couldnt_be_empty"]="$RED 用户名和密码不能为空! $NONE" | ||||
|     ["you_entered_wrong_routerip_or_one_not_connected"]="$RED 可能输入的 IP 地址不正确或者路由器未正确连接 $NONE" | ||||
|     ["maybe_ssh_connection_forbidden"]="$RED Probably SSH-connection is forbidden, check the router settings! $NONE" | ||||
|     ["invalid_login_or_password"]="$RED 用户名或密码无效! $NONE" | ||||
|     ["connection_settings"]="$BLUE 连接参数: $NONE" | ||||
|     ["sources_error2"]="$BLUE 源代码:$NONE$RED 错误 $NONE" | ||||
|     ["sources_error"]="$BLUE 源代码,$NONE$RED 错误 $NONE" | ||||
|     ["checking_loaded_files"]="$BLUE 正在检查加载的文件... $NONE" | ||||
|     ["loading_sources"]="$BLUE 正在加载源代码... $NONE" | ||||
|     ["you_want_to_continue"]=" 继续? (y/n) " | ||||
|     ["unrecognized_router"]="$RED 无法识别的路由器版本 $GREEN$platform $BLUE($version $revision) SN=$GREEN$serial $BLUE($memory) $NONE" | ||||
|     ["getting_router_info"]="$BLUE 正在收集路由器信息 $NONE" | ||||
|     ["init_router"]="$BLUE 正在初始化路由器 (可能需要 30 秒) $NONE" | ||||
|     ["wrong_pass_or_ipaddr"]="$RED 密码或 IP 地址可能不正确 $NONE" | ||||
|     ["logging_to_webui"]="$BLUE Logging into webui $NONE" | ||||
|     ["enter_pass_from_linux_account"]="$YELLOW 请输入 Linux 用户密码. $NONE" | ||||
|     ["no_connection_with_router"]="$RED 无法连接到路由器 $NONE" | ||||
|     ["connecting_to_router"]="$BLUE 正在连接到路由器地址 $IP $NONE" | ||||
|     ["bad_pass"]="$RED 密码不正确. $NONE" | ||||
|     ["webui_pass"]="$BLUE Web 界面密码: $NONE" | ||||
|     ["enter_router_ip"]="$BLUE 输入路由器 IP (默认 - 192.168.31.1): $NONE" | ||||
|     ["you_want_to_continue_task"]=" 你要继续吗? (y/n) " | ||||
|     ["source_code_patch_is_good"]="$GREEN 源代码补丁有效, 可以安全地构建. $NONE" | ||||
|     ["source_code_patch_is_bad"]="$RED 用于源代码的补丁无效, 构建时可能出现错误! " | ||||
|     ["dont_ask_questions_without_logs"]="$RED 请复制日志并在 4PDA 提问! $NONE" | ||||
|     ["toolchain_error"]="$BLUE 构建工具链时出现错误! $NONE" | ||||
|     ["building_toolchain"]="$BLUE 正在构建工具链... $NONE" | ||||
|     ["enter_yes_no"]=" 请输入 'yes' 或 'no'" | ||||
|     ["toolchain_build_canceled"]="$BLUE 已终止构建工具链! $NONE" | ||||
|     ["toolchain_build_started"]="$BLUE 已开始构建工具链... $NONE" | ||||
|     ["rebuild_toolchain"]=" 重新构建工具链? " | ||||
|     ["checking_installed_themes"]="$BLUE 正在检查已安装的主题... $NONE" | ||||
|     ["updating_skins"]="$BLUE 正在更新并应用主题... $NONE" | ||||
|     ["updating_source_code"]="$BLUE 正在更新源代码... $NONE" | ||||
|     ["revert_classic_skin"]="$BLUE 正在恢复原始主题... $NONE" | ||||
|     ["skins_found"]="$BLUE 检测到已安装的主题 $NONE" | ||||
|     ["ssh_access_established"]="$YELLOW 已建立 SSH 连接... $NONE" | ||||
|     ["ssh_access_not_established"]="$YELLOW 没有建立 SSH 访问, 脚本已完成. $NONE" | ||||
|     ["rebooting_router"]="$YELLOW 正在重启路由器并完成脚本! $NONE" | ||||
|     ["press_to_proceed"]="$RED 按任意键继续... $NONE" | ||||
|     ["skins_screen_select_item"]="${BLUE}请输入菜单项目序号: $NONE" | ||||
|     ["white_theme_off"]="$NONE 6. 白色主题              [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["white_theme_on"]="$NONE 6. 白色主题              [0.2 MB] [$GREEN0$on$NONE]" | ||||
|     ["yellow_theme_off"]="$NONE 5. 黄色主题             [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["yellow_theme_on"]="$NONE 5. 黄色主题             [0.2 MB] [$GREEN0$on$NONE]" | ||||
|     ["dark_blue_theme_off"]="$NONE 4. 深蓝色主题          [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["dark_blue_theme_on"]="$NONE 4. 深蓝色主题          [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["blue_theme_off"]="$NONE 3. 蓝色主题               [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["blue_theme_on"]="$NONE 3. 蓝色主题               [0.4 MB] [$GREEN0$on$NONE]" | ||||
|     ["grey_theme_vector_off"]="$NONE 2. 深灰色主题 (vector) [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["grey_theme_vector_on"]="$NONE 2. 深灰色主题 (vector) [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["grey_theme_off"]="$NONE 1. 深灰色主题          [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["grey_theme_on"]="$NONE 1. 深灰色主题          [0.6 MB] [$GREEN0$on$NONE]" | ||||
|     ["skins_core_off"]="$NONE 0. 主题核心               [0.0 MB] [$RED0$off$NONE]" | ||||
|     ["skins_core_on"]="$NONE 0. 主题核心               [0.4 MB] [$GREEN0$on$NONE]" | ||||
|     ["available_skins"]="$BLUE 可用的主题列表: $NONE" | ||||
|     ["select_module"]=" 请输入模块序号: " | ||||
|     ["available_modules"]="$BLUE 可用的模块列表: $NONE" | ||||
|     ["skin_full_tp2"]="$BLUE 主题:    $NONE $YELLOW    完整 $NONE" | ||||
|     ["skin_full_tp"]="$BLUE 主题:$NONE$YELLOW 完整$NONE" | ||||
|     ["skin_original2"]="$BLUE 主题:    $NONE $GREEN    原始 $NONE" | ||||
|     ["skin_original"]="$BLUE 主题:$NONE$GREEN 原始$NONE" | ||||
|     ["skin_lite_tp2"]="$BLUE 主题:    $NONE $YELLOW    精简 $NONE" | ||||
|     ["skin_lite_tp"]="$BLUE 主题:$NONE$YELLOW 精简$NONE" | ||||
|     ["installing_software"]="$YELLOW 正在安装软件, $NONE" | ||||
|     ["from_your_linux_account"]="$YELLOW 请输入 Linux 用户的密码. $NONE" | ||||
|     ["selected_config"]="$RED 已选择 ${CONFIGN[$yn]} $NONE" | ||||
|     ["select_existed_config"]="$RED 请选择一个存在的配置: $NONE" | ||||
|     ["select_config"]=" 输入配置序号: " | ||||
|     ["configs_to_choose"]="$BLUE 可用的路由器配置列表: $NONE" | ||||
|     ["xrmwrt_patch_ok"]="$BLUE XRMWRT 补丁:$NONE$GREEN  正常 $NONE" | ||||
|     ["source_code_not_found"]="$BLUE 源代码:$NONE$YELLOW     未找到 $NONE" | ||||
|     ["source_code_ok"]="$BLUE 源代码:$NONE$YELLOW       $GITCOMMIT $NONE" | ||||
|     ["directories_not_found"]="$BLUE 目录:$NONE$YELLOW     未找到 $NONE" | ||||
|     ["directories_ok"]="$BLUE 目录:$NONE$GREEN         正常 $NONE" | ||||
|     ["dependencies_ok"]="$BLUE 依赖:$NONE$GREEN         正常$NONE" | ||||
|     ["no_internet_connection"]="$RED 没有找到互联网连接. 接下来的工作无法进行! $NONE" | ||||
|     ["config_ok"]="$BLUE 配置:$NONE$GREEN         正常 $NONE" | ||||
|     ["slow_connection"]="互联网连接非常缓慢" | ||||
|     ["scripts_ok"]="$BLUE 脚本:$NONE$GREEN         正常 $NONE" | ||||
|     ["editor_warning_msg"]="$RED 请注意, 要禁用一个参数, 在一行前面加上 #, 反之亦然...$NONE" | ||||
|     ["autoeditor_bottom2"]="$NONE (F)常见问题 		(W)下一页 	(Q)退出 $NONE\n\n${BLUE} 请输入菜单序号: $NONE" | ||||
|     ["autoeditor_bottom1"]="$NONE (F)常见问题		(W)下一页 	(O)penSSL	(Q)退出 $NONE\n\n${BLUE} 请输入菜单序号: $NONE" | ||||
|     ["autoeditor_title"]="$BLUE 可用的配置参数列表:$NONE\n-------------------------------------------------------------------------------" | ||||
|     ["faq_screen_menu3"]="$YELLOW 恢复所有改动            (S) - 恢复一个原始备份.$NONE" | ||||
|     ["faq_screen_menu2"]="$YELLOW 刷入 EEPROM 补丁        (6) - 仅应用一次.$NONE" | ||||
|     ["please_enter_number_of_desired_language"]="$NONE-------------------------------------------------------------------------------$RED | ||||
|  请输入菜单项目序号: " | ||||
|     ["list_of_available_languages"]="$BLUE 可用的界面语言列表: $NONE | ||||
| $NONE-------------------------------------------------------------------------------" | ||||
|     ["entware_module_header"]="$BLUE 此模块允许你在没有外部存储的情况下启用 Entware. $NONE | ||||
| $BLUE 此模块需要一个已经安装了 Entware 的路由器. $NONE | ||||
| $RED 固件压缩比率为 5. | ||||
|  即 30Mb 的 Entware 会使固件增加 6Mb. $NONE" | ||||
|     ["tor_privoxy_module_header"]="$BLUE 此模块添加 TOR&PRIVOXY&DNSCRYPT 到源代码. $NONE | ||||
| $RED 请注意此模块需要特定版本的源代码! | ||||
|  如果你应用模块, 固件版本将会改变! $NONE | ||||
| $BLUE 安装之后你可以通过修改配置文件来选择你需要的软件. $NONE" | ||||
|     ["you_dont_have_to_change_opened_file"]="$RED 你不需要修改稍后打开的文件. | ||||
|  define - 启用, undef - 禁用.$NONE" | ||||
|     ["router_will_be_available_on_next_address_dont_forget_turn_on_ssh"]="$BLUE 可以从 192.168.1.1 访问路由器 (重启后), | ||||
|  用户名是 'admin', 密码是 'admin', WiFi 名称是 'ASUS', | ||||
|  WiFi 默认密码是 '1234567890'. | ||||
|  请不要忘记开启 SSH 以用于以后的固件升级. | ||||
|  注意, 之前的路由器设置没有改变... $NONE" | ||||
|     ["uboot_screen_menu_other_routers"]="  请输入菜单序号: | ||||
|   (1) 刷入/更新 U-Boot | ||||
|   (2) 从源代码构建 U-Boot | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["uboot_screen_menu_mi_mini"]="  请输入菜单序号: | ||||
|   (1) 刷入/更新 U-Boot | ||||
|   (2) 从源代码构建 U-Boot | ||||
|   (3) 恢复原始 U-Boot | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["uboot_screen_menu_mi_3"]="  请输入菜单序号: | ||||
|   (1) 刷入/更新 U-Boot | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["your_firmware_destroyed_in_safety_precautions"]="$RED 因为安全原因固件已被销毁! | ||||
|  更改配置然后再构建一次.$NONE" | ||||
|     ["restore_backup_warning"]="$RED 警告! $NONE | ||||
| $BLUE 如果出现了问题, 不要重启路由器并再刷入一次直到成功. $NONE | ||||
| $BLUE 回滚之后所有路由器设置将会恢复到创建备份时的状态. $NONE | ||||
|  | ||||
| " | ||||
|     ["faq_screen_menu"]="$YELLOW 请选择一个项目. 如果你不知道该做什么, | ||||
|  从上到下选择每一个项目. 风险由你自己承担... | ||||
|  | ||||
|  更新脚本                (1) - 更新此脚本. | ||||
|  更新源代码              (2) - 更新源代码, 请在步骤3和4之前进行. | ||||
|  构建工具链              (3) - 用于构建工具链, 很少变化. | ||||
|  刷入固件                (4) - 上传固件到路由器. | ||||
|  U-Boot                  (5) - 刷入路由器的引导程序.$NONE" | ||||
|     ["firmware_uploaded_into_router_do_flashing"]="$BLUE 固件已上传到路由器... $NONE | ||||
| $BLUE 正在刷入... $NONE" | ||||
|     ["enable_ssh_and_enter_data_from_xiaomi_site_or_xrmwrt_webui"]="$YELLOW 官方固件请到小米官网获取数据, | ||||
|  xrmwrt 从 WebUI 获取, | ||||
|  必须在 WebUI 中 启用 SSH 访问. $NONE" | ||||
|     ["connection_screen_menu"]="------------------------------------------------------------------------------- | ||||
|  以下参数正确吗? | ||||
|   (1) 参数正确 | ||||
|   (2) 更新参数 | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["update_prometheus_menu"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号: | ||||
|   (1) 更新脚本到稳定版本 | ||||
|   (2) 更新脚本到测试版本 | ||||
|   (3) 只更新补丁 | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号: | ||||
|   (1) 自动编辑器 | ||||
|   (2) 编辑配置文件 | ||||
|   (3) 恢复所有改动 | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_wt3020"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号: | ||||
|   (1) 自动编辑器 | ||||
|   (2) 编辑配置文件 | ||||
|   (3) 恢复所有改动 | ||||
|   (4) 把 '重置' 按钮替换为 'WPS' [ 可以在 WebUI 中修改 ] | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["config_screen_menu_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号: | ||||
|   (1) 自动编辑器 | ||||
|   (2) 编辑配置文件 | ||||
|   (3) 恢复所有改动 | ||||
|   (4) 把 '重置' 按钮替换为 'WPS' [ 可以在 WebUI 中修改 ] | ||||
|   (5) 启用 WAN 红色 LED [ 可以在 WebUI 中修改 ] | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["firmware_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号: | ||||
|   (1) 更改构建配置 | ||||
|   (2) 应用主题 | ||||
|   (3) 构建固件 | ||||
|   (4) 刷入固件 | ||||
|   (5) 从档案中选择一个固件 | ||||
|   (6) 清空固件档案 | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["firmware_screen_menu_mi_3"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号: | ||||
|   (1) 更改构建配置 | ||||
|   (2) 应用主题 | ||||
|   (3) 构建固件 | ||||
|   (4) 刷入固件 | ||||
|   (5) 从档案中选择一个固件 | ||||
|   (6) 清空固件档案 | ||||
|   (7) 格式化 RWFS | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["settings_screen_menu"]=" | ||||
| $BLUE  脚本作者: Freize, Yadoff, Firsthash. | ||||
|   简体中文翻译: ysc3839 | ||||
|   联系: is@freize.net | ||||
|   网站: http://prometheus.freize.net/ $NONE | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
|   请输入菜单序号: | ||||
|   (1) 修改路由器配置 | ||||
|   (2) 删除配置 | ||||
|   (3) 模块 | ||||
|   (4) 语言 | ||||
|   (5) SSH 设置 | ||||
|   (6) Select a repository | ||||
|   (F) 常见问题 | ||||
|   (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["prometheus_header"]="-------------------------------------------------------------------------------$BLUE | ||||
|   $NONE$GREEN                               PROMETHEUS $NONE$BLUE | ||||
|   $NONE$RED                       脚本版本: $PROMETHEUS2$PROMETHEUS3 $stable $NONE$BLUE | ||||
|   Prometheus 是用于维护及更新路由器固件的脚本. | ||||
|   路由器配置: $GREEN$CONFIG_FIRMWARE_PRODUCT_ID$BLUE SN: $YELLOW$SSHTOK$BLUE GIT$GITOK$YELLOW$GITCOMMIT$BLUE | ||||
|  $ST52$FIRM$SKIN$NONE | ||||
| " | ||||
|     ["main_screen_menu_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号或字母 | ||||
|   初始操作: | ||||
|     (1) 更新脚本 | ||||
|     (2) 更新源代码 | ||||
|     (3) 构建工具链 | ||||
|   最终操作: | ||||
|     (4) 固件 | ||||
|     (5) U-Boot [ 注意! 路由器可能会损坏! ] | ||||
|     (6) EEPROM [ 仅应用一次 ] | ||||
|   杂项: | ||||
|     (S) 脚本设置 | ||||
|     (T) 恢复备份 | ||||
|     (F) 常见问题 | ||||
|     (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_mini"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号或字母 | ||||
|   初始操作: | ||||
|     (0) 开启原始固件 SSH 访问 [ 未完全测试 ] | ||||
|     (1) 更新脚本 | ||||
|     (2) 更新源代码 | ||||
|     (3) 构建工具链 | ||||
|   最终操作: | ||||
|     (4) 固件 | ||||
|     (5) U-Boot [ 注意! 路由器可能会损坏! ] | ||||
|     (6) EEPROM [ 仅应用一次 ] | ||||
|   杂项: | ||||
|     (S) 脚本设置 | ||||
|     (T) 恢复备份 | ||||
|     (F) 常见问题 | ||||
|     (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_mi_3"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号或字母 | ||||
|   初始操作: | ||||
|     (1) 更新脚本 | ||||
|     (2) 更新源代码 | ||||
|     (3) 构建工具链 | ||||
|   最终操作: | ||||
|     (4) 固件 | ||||
|     (5) U-Boot [ 注意! 路由器可能会损坏! ] | ||||
|     (6) EEPROM [ 仅应用一次 ] | ||||
|   杂项: | ||||
|     (S) 脚本设置 | ||||
|     (T) 恢复备份 | ||||
|     (F) 常见问题 | ||||
|     (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_3"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号或字母 | ||||
|   初始操作: | ||||
|     (0) 开启原始固件 SSH 访问 [ 未完全测试 ] | ||||
|     (1) 更新脚本 | ||||
|     (2) 更新源代码 | ||||
|     (3) 构建工具链 | ||||
|   最终操作: | ||||
|     (4) 固件 | ||||
|     (5) U-Boot [ 注意! 路由器可能会损坏! ] | ||||
|     (6) EEPROM [ 仅应用一次 ] | ||||
|   杂项: | ||||
|     (S) 脚本设置 | ||||
|     (T) 恢复备份 | ||||
|     (F) 常见问题 | ||||
|     (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_mi_nano"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号或字母 | ||||
|   初始操作: | ||||
|     (1) 更新脚本 | ||||
|     (2) 更新源代码 | ||||
|     (3) 构建工具链 | ||||
|   最终操作: | ||||
|     (4) 固件 | ||||
|     (5) U-Boot [ 注意! 路由器可能会损坏! ] | ||||
|   杂项: | ||||
|     (S) 脚本设置 | ||||
|     (T) 恢复备份 | ||||
|     (F) 常见问题 | ||||
|     (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_ssh_mi_nano"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号或字母 | ||||
|   初始操作: | ||||
|     (0) 开启原始固件 SSH 访问 [ 未完全测试 ] | ||||
|     (1) 更新脚本 | ||||
|     (2) 更新源代码 | ||||
|     (3) 构建工具链 | ||||
|   最终操作: | ||||
|     (4) 固件 | ||||
|     (5) U-Boot [ 注意! 路由器可能会损坏! ] | ||||
|   杂项: | ||||
|     (S) 脚本设置 | ||||
|     (T) 恢复备份 | ||||
|     (F) 常见问题 | ||||
|     (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
|     ["main_screen_menu_other_routers"]="------------------------------------------------------------------------------- | ||||
|   请输入菜单序号或字母 | ||||
|   初始操作: | ||||
|     (1) 更新脚本 | ||||
|     (2) 更新源代码 | ||||
|     (3) 构建工具链 | ||||
|   最终操作: | ||||
|     (4) 固件 | ||||
|     (5) U-Boot [ 注意! 路由器可能会损坏! ] | ||||
|   杂项: | ||||
|     (S) 脚本设置 | ||||
|     (T) 恢复备份 | ||||
|     (F) 常见问题 | ||||
|     (Q) 退出 | ||||
| -------------------------------------------------------------------------------" | ||||
| ) | ||||
							
								
								
									
										216
									
								
								scripts/restore.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										216
									
								
								scripts/restore.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,216 @@ | ||||
| #!/bin/bash | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| ssh_port=22 | ||||
| . ./configs/script.config.sh | ||||
| . ./configs/routers/$ROUTERS.sh | ||||
| # Подключаем локализацию | ||||
| . ./scripts/localization.sh | ||||
|  | ||||
| # Проверяем наличие бэкапа стокового | ||||
|  | ||||
| BACKUPALL=$(find MTD_BACKUP_$CONFIG_FIRMWARE_PRODUCT_ID -type f -size 16777216c -exec ls -1tr {} +) | ||||
| if [[ -z $BACKUPALL ]] | ||||
| then | ||||
|    message backups_not_found | ||||
|    exit | ||||
| fi | ||||
|  | ||||
| all_mtds=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT 'cat /proc/mtd' | egrep "^mtd([0-9])+" -o | tr '\n' ',' | sed 's/,$//') | ||||
| if [[ "$all_mtds" != "mtd0,mtd1,mtd2,mtd3,mtd4,mtd5,mtd6" ]] | ||||
| then | ||||
|    message this_script_works_only_with_xrmwrt_firmware | ||||
|    exit | ||||
| fi | ||||
|  | ||||
| while true; do | ||||
|    clear | ||||
|    message restore_backup_warning | ||||
|  | ||||
|    I=1 | ||||
|    while read -r line | ||||
|    do | ||||
|       echo -e "$BLUE $I) $GREEN $line $NONE" | ||||
|       BACKUP["$I"]=$line | ||||
|       I=$(($I + 1)) | ||||
|    done <<<"$BACKUPALL" | ||||
|    message restore_backup_quit | ||||
|    echo -e "$RED" | ||||
|    read -p "`message_n select_backup_that_you_want_to_flash`" yn | ||||
|    if [[ $yn == "Q" ]] | ||||
|    then | ||||
|       message restore_backup_canceled | ||||
|       exit | ||||
|    elif [[ -z ${BACKUP[$yn]} ]] | ||||
|    then | ||||
|       message please_enter_existed_backup | ||||
|       sleep 2 | ||||
|    else | ||||
|      I=$yn | ||||
|      break | ||||
|    fi | ||||
| done | ||||
|  | ||||
|  | ||||
| while true; do | ||||
|    read -p "`message_n do_you_want_restore_firmware_using_selected_file`" yn | ||||
|    case $yn in | ||||
|       [Yy]* ) INGODWETRUST=1 ; break;; | ||||
|       [Nn]* ) INGODWETRUST=0 ; break;; | ||||
|           * ) message enter_yes_no;; | ||||
|    esac | ||||
| done | ||||
| BACKUPALL=${BACKUP[$I]} | ||||
| echo | ||||
| if [ $INGODWETRUST -gt 0 ] | ||||
| then | ||||
|  | ||||
| while true; do | ||||
|    read -p "`message_n do_you_want_restore_uboot_from_backup_or_remain_one_unchanged`" yn | ||||
|    case $yn in | ||||
|       [Yy]* ) INGODWETRUST=1 ; break;; | ||||
|       [Nn]* ) INGODWETRUST=0 ; break;; | ||||
|           * ) message enter_yes_no;; | ||||
|    esac | ||||
| done | ||||
|  | ||||
| if [ $INGODWETRUST -gt 0 ] | ||||
| then | ||||
|    message uploading_uboot | ||||
|    dd if=$BACKUPALL bs=65536 count=3 2>/dev/null | sshpass -p "$PWDR" ssh -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT 'dd of=/tmp/tmp.bin' 2>/dev/null | ||||
|    local_md5=$(dd if=$BACKUPALL bs=65536 count=3 2>/dev/null | md5sum | sed 's/ .*//') | ||||
|    remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /tmp/tmp.bin" < /dev/null | sed 's/ .*//') | ||||
|    if [ "$remote_md5" != "$local_md5" ] | ||||
|    then | ||||
|       echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|       message script_is_stopping_because_of_possibility_router_brick | ||||
|       exit | ||||
|    else | ||||
|       echo -e "$BLUE Checksum,$NONE$GREEN OK $NONE" | ||||
|       # Прошиваем | ||||
|       message flashing_backup | ||||
|       export_script="mtd_write write /tmp/tmp.bin Bootloader" | ||||
|       sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT $export_script | ||||
|       remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /dev/mtd0" < /dev/null | sed 's/ .*//') | ||||
|       if [ "$remote_md5" != "$local_md5" ] | ||||
|       then | ||||
|          echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|          message script_is_stopping_because_of_possibility_router_brick | ||||
|          message_n should_not_reboot_your_router_until_uboot_flashed_successfully | ||||
|          exit | ||||
|       fi | ||||
|       echo -e "$GREEN OK $NONE" | ||||
|    fi | ||||
| fi | ||||
|  | ||||
| echo -e "$BLUE Загружаем Config... $NONE" | ||||
| dd if=$BACKUPALL bs=65536 count=1 skip=3 2>/dev/null | sshpass -p "$PWDR" ssh -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT 'dd of=/tmp/tmp.bin' 2>/dev/null | ||||
| local_md5=$(dd if=$BACKUPALL bs=65536 count=1 skip=3 2>/dev/null | md5sum | sed 's/ .*//') | ||||
| remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /tmp/tmp.bin" < /dev/null | sed 's/ .*//') | ||||
| if [ "$remote_md5" != "$local_md5" ] | ||||
| then | ||||
|    echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|    message script_is_stopping_because_of_possibility_router_brick | ||||
|    exit | ||||
| else | ||||
|    echo -e "$BLUE Checksum,$NONE$GREEN OK $NONE" | ||||
|    # Прошиваем | ||||
|    message flashing_backup | ||||
|    export_script="mtd_write write /tmp/tmp.bin Config" | ||||
|    sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT $export_script | ||||
|    remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /dev/mtd1" < /dev/null | sed 's/ .*//') | ||||
|    if [ "$remote_md5" != "$local_md5" ] | ||||
|    then | ||||
|       echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|       message script_is_stopping_because_of_possibility_router_brick | ||||
|       message_n should_not_reboot_your_router_until_uboot_flashed_successfully | ||||
|       exit | ||||
|    fi | ||||
|    echo -e "$GREEN OK $NONE" | ||||
| fi | ||||
|  | ||||
| message uploading_factory | ||||
| dd if=$BACKUPALL bs=65536 count=1 skip=4 2>/dev/null | sshpass -p "$PWDR" ssh -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT 'dd of=/tmp/tmp.bin' 2>/dev/null | ||||
| local_md5=$(dd if=$BACKUPALL bs=65536 count=1 skip=4 2>/dev/null | md5sum | sed 's/ .*//') | ||||
| remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /tmp/tmp.bin" < /dev/null | sed 's/ .*//') | ||||
| if [ "$remote_md5" != "$local_md5" ] | ||||
| then | ||||
|    echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|    message script_is_stopping_because_of_possibility_router_brick | ||||
|    exit | ||||
| else | ||||
|    echo -e "$BLUE Checksum,$NONE$GREEN OK $NONE" | ||||
|    # Прошиваем | ||||
|    message flashing_backup | ||||
|    export_script="mtd_write write /tmp/tmp.bin Factory" | ||||
|    sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT $export_script | ||||
|    remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /dev/mtd2" < /dev/null | sed 's/ .*//') | ||||
|    if [ "$remote_md5" != "$local_md5" ] | ||||
|    then | ||||
|       echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|       message script_is_stopping_because_of_possibility_router_brick | ||||
|       message_n should_not_reboot_your_router_until_uboot_flashed_successfully | ||||
|       exit | ||||
|    fi | ||||
|    echo -e "$GREEN OK $NONE" | ||||
| fi | ||||
|  | ||||
| message uploading_firmware | ||||
| dd if=$BACKUPALL bs=65536 count=247 skip=5 2>/dev/null | sshpass -p "$PWDR" ssh -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT 'dd of=/tmp/tmp.bin' 2>/dev/null | ||||
| local_md5=$(dd if=$BACKUPALL bs=65536 count=247 skip=5 2>/dev/null | md5sum | sed 's/ .*//') | ||||
| remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /tmp/tmp.bin" < /dev/null | sed 's/ .*//') | ||||
| if [ "$remote_md5" != "$local_md5" ] | ||||
| then | ||||
|    echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|    message script_is_stopping_because_of_possibility_router_brick | ||||
|    exit | ||||
| else | ||||
|    echo -e "$BLUE Checksum,$NONE$GREEN OK $NONE" | ||||
|    # Прошиваем | ||||
|    message flashing_backup | ||||
|    export_script="mtd_write write /tmp/tmp.bin Firmware_Stub" | ||||
|    sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT $export_script | ||||
|    remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /dev/mtd6" < /dev/null | sed 's/ .*//') | ||||
|    if [ "$remote_md5" != "$local_md5" ] | ||||
|    then | ||||
|       echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|       message script_is_stopping_because_of_possibility_router_brick | ||||
|       message_n should_not_reboot_your_router_until_uboot_flashed_successfully | ||||
|       exit | ||||
|    fi | ||||
|    echo -e "$GREEN OK $NONE" | ||||
| fi | ||||
|  | ||||
| message uploading_storage | ||||
| dd if=$BACKUPALL bs=65536 count=4 skip=252 2>/dev/null | sshpass -p "$PWDR" ssh -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT 'dd of=/tmp/tmp.bin' 2>/dev/null | ||||
| local_md5=$(dd if=$BACKUPALL bs=65536 count=4 skip=252 2>/dev/null | md5sum | sed 's/ .*//') | ||||
| remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /tmp/tmp.bin" < /dev/null | sed 's/ .*//') | ||||
| if [ "$remote_md5" != "$local_md5" ] | ||||
| then | ||||
|    echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|    message script_is_stopping_because_of_possibility_router_brick | ||||
|    exit | ||||
| else | ||||
|    echo -e "$BLUE Checksum,$NONE$GREEN OK $NONE" | ||||
|    # Прошиваем | ||||
|    message flashing_backup | ||||
|    export_script="mtd_write write /tmp/tmp.bin Storage" | ||||
|    sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT $export_script | ||||
|    remote_md5=$(sshpass -p "$PWDR" ssh -T -p $ssh_port -oStrictHostKeyChecking=no $ROOTWRT@$IPWRT "md5sum /dev/mtd5" < /dev/null | sed 's/ .*//') | ||||
|    if [ "$remote_md5" != "$local_md5" ] | ||||
|    then | ||||
|       echo -e "$BLUE Checksum,$NONE$RED ERROR $NONE" | ||||
|       message script_is_stopping_because_of_possibility_router_brick | ||||
|       message_n should_not_reboot_your_router_until_uboot_flashed_successfully | ||||
|       exit | ||||
|    fi | ||||
|    echo -e "$GREEN OK $NONE" | ||||
| fi | ||||
| message done_now_you_must_reboot_your_router_manually | ||||
| else | ||||
| message restore_backup_canceled | ||||
| fi | ||||
							
								
								
									
										60
									
								
								scripts/up1.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										60
									
								
								scripts/up1.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,60 @@ | ||||
| #!/bin/bash | ||||
| #--------------------------------------------------------------- | ||||
| #-Скрипт разработан специально для 4PDA от Foreman (Freize.org)- | ||||
| #-Распространение без ведома автора запрещено!                 - | ||||
| #--------------------------------------------------------------- | ||||
| # Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| NONE='\033[0m' | ||||
| # Подключаем локализацию | ||||
| . ./scripts/localization.sh | ||||
| #--------------------------------------------------------------- | ||||
| # Конец технического раздела | ||||
| #--------------------------------------------------------------- | ||||
| message downloading_update | ||||
| function p_up_tar { | ||||
| rm -f ./files/loki.tar &>/dev/null | ||||
| wget -O files/loki.tar http://pm.freize.net/scripts/loki.tar &>/dev/null | ||||
| message decompressing_update | ||||
| tar -xvf update.tar | ||||
| tar -C $ICP -xvf ./$DIRF/loki.tar md5 trunk uboot | ||||
| tar -xvf ./$DIRF/loki.tar configs/git.sh -C $DIRC | ||||
| tar -xvf ./$DIRF/loki.tar configs/uboot.sh -C $DIRC | ||||
| message cleaning_update | ||||
| rm update.tar &>/dev/null | ||||
| if [ -f $DIRP/$DIRS/up3.sh ]; then | ||||
|    rm -f $DIRP/$DIRS/up3.sh  >/dev/null 2>&1 | ||||
| fi | ||||
| } | ||||
| function p_up_patch { | ||||
| rm -f ./files/loki.tar &>/dev/null | ||||
| wget -O files/loki.tar http://pm.freize.net/scripts/loki.tar &>/dev/null | ||||
| # tar -C $ICP -xvf ./$DIRF/loki.tar md5 trunk uboot | ||||
| tar -xvf ./$DIRF/loki.tar configs/git.sh -C $DIRC | ||||
| tar -xvf ./$DIRF/loki.tar configs/uboot.sh -C $DIRC | ||||
| } | ||||
| function p_up_relise { | ||||
| wget -O update.tar http://pm.freize.net/scripts/update.tar &>/dev/null | ||||
| } | ||||
| function p_up_test { | ||||
| wget -O update.tar http://pm.freize.net/scripts/update-t.tar &>/dev/null | ||||
| } | ||||
| if [ $# = 0 ] | ||||
| then | ||||
|    p_up_relise | ||||
| else | ||||
|    while getopts "rtp" opt ; | ||||
|    do | ||||
|        case $opt in | ||||
|            r) p_up_relise ; p_up_tar ;; | ||||
|            t) p_up_test ; p_up_tar;; | ||||
|            p) p_up_patch ;; | ||||
|            esac | ||||
|    done | ||||
| fi | ||||
|  | ||||
| #--------------------------------------------------------------- | ||||
| # Конец скрипта | ||||
| #--------------------------------------------------------------- | ||||
							
								
								
									
										33
									
								
								scripts/up2.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										33
									
								
								scripts/up2.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,33 @@ | ||||
| #!/bin/bash | ||||
| #--------------------------------------------------------------- | ||||
| #-Скрипт разработан специально для 4PDA от Foreman (Freize.org)- | ||||
| #-Распространение без ведома автора запрещено!                 - | ||||
| #--------------------------------------------------------------- | ||||
| #Цвета: | ||||
| RED='\033[1;31m' | ||||
| GREEN='\033[1;32m' | ||||
| BLUE='\033[1;36m' | ||||
| YELLOW='\033[1;33m' | ||||
| NONE='\033[0m' | ||||
| # Подключаем локализацию | ||||
| . ./scripts/localization.sh | ||||
| #--------------------------------------------------------------- | ||||
| # Конец технического раздела | ||||
| #--------------------------------------------------------------- | ||||
| set_round=1 | ||||
| while true; do | ||||
|    #проверяем зависимости и выходим если все установлено | ||||
|    if [ "$set_round" -ge "3" ] | ||||
|    then | ||||
|      message software_installation_error | ||||
|      message press_to_proceed | ||||
|      read -n1 -s ; read -s -t 0.1 | ||||
|      exit | ||||
|    fi | ||||
|    dpkg -s ca-certificates build-essential gawk texinfo pkg-config gettext autoconf automake libtool libtool-bin bison flex zlib1g-dev libgmp3-dev libmpfr-dev libmpc-dev git zip sshpass mc curl python-is-python2 expect bc telnet openssh-client tftpd-hpa libid3tag0-dev gperf libltdl-dev autopoint libarchive-zip-perl python-docutils help2man libncurses5-dev >/dev/null 2>&1 && message dependencies_ok && sleep 0.3 && break | ||||
|    set_round=$(($set_round + 1)) | ||||
|    #message installing_software | ||||
|    #message your_account | ||||
|    sudo apt-get update | ||||
|    sudo apt-get -y install ca-certificates build-essential gawk texinfo pkg-config gettext autoconf automake libtool libtool-bin bison flex zlib1g-dev libgmp3-dev libmpfr-dev libmpc-dev git zip sshpass mc curl python expect bc telnet openssh-client tftpd-hpa libid3tag0-dev gperf libltdl-dev  autopoint libarchive-zip-perl python-docutils help2man libncurses5-dev | ||||
| done | ||||
		Reference in New Issue
	
	Block a user