mirror of
https://repo.or.cz/socat.git
synced 2025-07-17 16:43:24 +00:00
Fixes for old Scientific/RHEL
This commit is contained in:
parent
19d488a14f
commit
2439276651
4 changed files with 23 additions and 24 deletions
4
test.sh
4
test.sh
|
@ -851,7 +851,7 @@ testod () {
|
|||
|
||||
# bash before version 3 aborts scripts that contain unquoted '=~'
|
||||
# Therefore we create a shell script and quotedly fill it with '=~' for newer
|
||||
# bashes
|
||||
# bashes [regexp regular expressions]
|
||||
mkdir -p $td/bin
|
||||
rm -f $td/bin/re_match
|
||||
if [ "${BASH_VERSION%%[.]*}" -le 2 ]; then
|
||||
|
@ -1886,7 +1886,7 @@ waitudp6port () {
|
|||
fi ;;
|
||||
FreeBSD) l=$(netstat -an |$GREP_E '^udp(6|46) .*[0-9*]\.'$port' .* \*\.\*') ;;
|
||||
NetBSD) l=$(netstat -an |grep '^udp6 .* \*\.'$port' [ ]* \*\.\*') ;;
|
||||
OpenBSD) l=$(netstat -an |grep '^udp6 .*[0-9*]\.'$port' [ ]* \*\.\*') ;;
|
||||
OpenBSD) l=$(netstat -an |grep '^udp6 .*[0-9*]\.'$port' [ ]* \*\.\*') ;;
|
||||
Darwin) l=$(netstat -an |$GREP_E '^udp4?6 +[0-9]+ +[0-9]+ +[0-9a-z:%*]+\.'$port' +[0-9a-z:%*.]+') ;;
|
||||
AIX) l=$(netstat -an |grep '^udp[6 ] 0 0 .*[*0-9]\.'$port' .* \*\.\*[ ]*$') ;;
|
||||
SunOS) l=$(netstat -an -f inet6 -P udp |grep '.*[1-9*]\.'$port' [ ]*Idle') ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue