From cb477e91f162e350555fdb56e0e2e6d37dc559b8 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Tue, 20 May 2025 09:59:55 +0200 Subject: [PATCH] Config File --- misc/config-file.func | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/config-file.func b/misc/config-file.func index 57401be..18abf1e 100644 --- a/misc/config-file.func +++ b/misc/config-file.func @@ -325,9 +325,11 @@ config_file() { ip=$(int_to_ip $ip_int) msg_info "Checking IP: $ip" if ! ping -c 1 -W 1 "$ip" >/dev/null 2>&1; then - msg_ok " " + [ -n "${SPINNER_PID:-}" ] && kill "$SPINNER_PID" 2>/dev/null && wait "$SPINNER_PID" 2>/dev/null + NET="$ip/$cidr" echo -e "${NETWORK}${BOLD}${DGN}Using free IP Address: ${BGN}$NET${CL}" + sleep 3 break fi done