From 6b46020866ae06b518840fd3239a9bfe1a398364 Mon Sep 17 00:00:00 2001 From: CodeRoK7 <58553260+CodeRoK7@users.noreply.github.com> Date: Tue, 25 Feb 2025 22:46:03 +0500 Subject: [PATCH] Fix bug input confirm install podkop --- awg_config.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awg_config.sh b/awg_config.sh index 29234c0..bac7911 100644 --- a/awg_config.sh +++ b/awg_config.sh @@ -239,10 +239,11 @@ if ! uci show firewall | grep -q "@forwarding.*name='${ZONE_NAME}'"; then fi if [ -f "/etc/init.d/podkop" ]; then - path_podkop_config="/etc/config/podkop" + path_podkop_config="/etc/config/podkop" path_podkop_config_backup="/root/podkop" URL="https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs/refs/heads/main" printf "Podkop installed. Reconfigured on AWG WARP? (y/n): \n" + is_reconfig_podkop="y" read is_reconfig_podkop if [ "$is_reconfig_podkop" = "y" ] || [ "$is_reconfig_podkop" = "Y" ]; then cp -f "$path_podkop_config" "$path_podkop_config_backup" @@ -254,7 +255,7 @@ if [ -f "/etc/init.d/podkop" ]; then fi else printf "\033[32;1mInstall and configure PODKOP (a tool for point routing of traffic)?? (y/n): \033[0m\n" - read -r -t 1 + is_install_podkop="y" read is_install_podkop if [ "$is_install_podkop" = "y" ] || [ "$is_install_podkop" = "Y" ]; then