#!/bin/bash

function test()
{
        ret=`grep "sha512"  /etc/pam.d/* |grep -v "#"`
		#$ret is not null
		if [[ -n "$ret" ]];then
			echo 0
		else
			echo 1
		fi

}
test





