#!/bin/bash

var=`openssl version | awk ' {print $2 }'`
endver=`echo $var | awk -F. ' {print $3}'`

num=${endver%%[a-z]}

if [ $num -eq "7" ]; then
	letter=${endver##[0-9]}
	if [[ $letter =~ [d-z] ]]; then
		echo "FALSE"
	else
		echo "TRUE"
	fi
elif [ $num -eq "6" ]; then
	letter=${endver##[0-9]}
	if [[ $letter =~ [m-z] ]]; then
		echo "FALSE"
	else
		echo "TRUE"
	fi
else
	echo "TRUE"
fi

echo "!!SCRIPT_FINISHED!!"