mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
firmware: work around FreeBSD 13 faulty validation
ping6: -4 and -6 cannot be used simultaneously No, that's not how argument parsing works...
This commit is contained in:
parent
7767a6db9e
commit
d7d69895cd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user