Config File

This commit is contained in:
Michel Roegl-Brunner 2025-05-20 10:02:14 +02:00
parent cb477e91f1
commit 4cd307543a

View File

@ -324,11 +324,9 @@ config_file() {
for ((ip_int=start_int; ip_int<=end_int; ip_int++)); do for ((ip_int=start_int; ip_int<=end_int; ip_int++)); do
ip=$(int_to_ip $ip_int) ip=$(int_to_ip $ip_int)
msg_info "Checking IP: $ip" msg_info "Checking IP: $ip"
if ! ping -c 1 -W 1 "$ip" >/dev/null 2>&1; then if ! ping -c 2 -W 1 "$ip" >/dev/null 2>&1; then
[ -n "${SPINNER_PID:-}" ] && kill "$SPINNER_PID" 2>/dev/null && wait "$SPINNER_PID" 2>/dev/null
NET="$ip/$cidr" NET="$ip/$cidr"
echo -e "${NETWORK}${BOLD}${DGN}Using free IP Address: ${BGN}$NET${CL}" msg_ok "${NETWORK}${BOLD}${DGN}Using free IP Address: ${BGN}$NET${CL}"
sleep 3 sleep 3
break break
fi fi