From d7d69895cd8672379a634488fb116e1a0bbbeaa6 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 10 Dec 2021 12:46:14 +0100 Subject: [PATCH] firmware: work around FreeBSD 13 faulty validation ping6: -4 and -6 cannot be used simultaneously No, that's not how argument parsing works... --- src/opnsense/scripts/firmware/connection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/scripts/firmware/connection.sh b/src/opnsense/scripts/firmware/connection.sh index c4781b16e..51d1b0b19 100755 --- a/src/opnsense/scripts/firmware/connection.sh +++ b/src/opnsense/scripts/firmware/connection.sh @@ -39,12 +39,12 @@ echo "***GOT REQUEST TO AUDIT CONNECTIVITY***" >> ${LOCKFILE} echo "Currently running $(opnsense-version) at $(date)" >> ${LOCKFILE} echo "Checking connectivity for host: ${HOST}" | ${TEE} ${LOCKFILE} if [ -n "${IPV4}" -a -z "${IPV4%%*.*}" ]; then - (ping -c4 ${IPV4} 2>&1) | ${TEE} ${LOCKFILE} + (ping -c 4 ${IPV4} 2>&1) | ${TEE} ${LOCKFILE} else echo "No IPv4 address could be found." | ${TEE} ${LOCKFILE} fi if [ -n "${IPV6}" -a -z "${IPV6%%*:*}" ]; then - (ping6 -c4 ${IPV6} 2>&1) | ${TEE} ${LOCKFILE} + (ping6 -c 4 ${IPV6} 2>&1) | ${TEE} ${LOCKFILE} else echo "No IPv6 address could be found." | ${TEE} ${LOCKFILE} fi