diff --git a/cipherscan b/cipherscan index 46bb981..7da1be5 100755 --- a/cipherscan +++ b/cipherscan @@ -27,6 +27,7 @@ fi # test that timeout or gtimeout (darwin) are present TIMEOUTBIN="$(which timeout)" + if [ "$TIMEOUTBIN" == "" ]; then TIMEOUTBIN="$(which gtimeout)" if [ "$TIMEOUTBIN" == "" ]; then @@ -35,6 +36,12 @@ if [ "$TIMEOUTBIN" == "" ]; then fi fi +# Check for busybox, which has different arguments +TIMEOUTOUTPUT=$(($TIMEOUTBIN --help) 2>&1) +if [[ "$TIMEOUTOUTPUT" =~ BusyBox ]]; then + TIMEOUTBIN="$TIMEOUTBIN -t" +fi + # find a list of trusted CAs on the local system, or use the provided list if [ -z "$CACERTS" ]; then for f in /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt; do