From fcb03ff51e6522342d81dbfbd0b8771042e9486c Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Wed, 13 Nov 2024 15:41:57 +0300 Subject: [PATCH] Added install rus translate --- README.md | 6 ++++++ install.sh | 17 +++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 255cadc..c121bf7 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,11 @@ sh <(wget -O - https://raw.githubusercontent.com/itdoginfo/podkop/refs/heads/mai opkg remove luci-app-podkop podkop ``` +Если был установлен русский язык +``` +opkg remove luci-i18n-podkop-ru +``` + # Использование Конфиг: /etc/config/podkop @@ -72,6 +77,7 @@ opkg update && opkg install sing-box - [x] Не отрабатывает рестарт, при awg и не применяются изменения при awg - [x] awg работает не стабильно - [ ] Сеть рестартится при любом раскладе +- [ ] Выкл-вкл wg через luci не отрабатывает поднятие маршрута # ToDo Сделано diff --git a/install.sh b/install.sh index e056baa..27f711a 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ REPO="https://api.github.com/repos/itdoginfo/podkop/releases/latest" -IS_SHOULD_RESTART_NETWORK=false +IS_SHOULD_RESTART_NETWORK= DOWNLOAD_DIR="/tmp/podkop" mkdir -p "$DOWNLOAD_DIR" @@ -54,7 +54,20 @@ fi opkg install $DOWNLOAD_DIR/podkop*.ipk opkg install $DOWNLOAD_DIR/luci-app-podkop*.ipk -rm -f $DOWNLOAD_DIR/podkop*.ipk $DOWNLOAD_DIR/luci-app-podkop*.ipk +echo "Русский язык интерфейса ставим? y/n (Need a Russian translation?) +while true; do + read -r -p '' RUS + case $RUS in + + y) + opkg install $DOWNLOAD_DIR/luci-i18n-podkop-ru*.ipk + + break + ;; + esac +done + +rm -f $DOWNLOAD_DIR/podkop*.ipk $DOWNLOAD_DIR/luci-app-podkop*.ipk $DOWNLOAD_DIR/luci-i18n-podkop-ru*.ipk if [ "$IS_SHOULD_RESTART_NETWORK" ]; then printf "\033[32;1mRestart network\033[0m\n"