From 37f0657c9aa91f34ee629a97df07fd50a7c12ec2 Mon Sep 17 00:00:00 2001 From: CodeRoK7 <58553260+CodeRoK7@users.noreply.github.com> Date: Thu, 3 Apr 2025 17:34:57 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- universal_config.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/universal_config.sh b/universal_config.sh index ece9c70..54cffc4 100644 --- a/universal_config.sh +++ b/universal_config.sh @@ -695,10 +695,11 @@ do sleep 2 # Включаем интерфейс ifup $INTERFACE_NAME - + pingAddress="8.8.8.8" - - if ping -c 1 -I $INTERFACE_NAME $pingAddress 2>&1 + ping -c 1 -I $INTERFACE_NAME $pingAddress + + if ping -c 1 -I $INTERFACE_NAME $pingAddress >/dev/null 2>&1 then isExit=1 else