Blame tests/p_centos-release/centos-release_release_compat_symlinks.sh

Athmane Madjoudj 5827ae
#!/bin/sh
Athmane Madjoudj 5827ae
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 5827ae
Athmane Madjoudj 5827ae
t_Log "Running $0 - /etc/centos-release compatibility symbolic links test."
Pablo Greco 687a67
if [ "$centos_ver" -ge 6 ]
Athmane Madjoudj 66dad5
then
Pablo Greco 687a67
  grep "CentOS" /etc/centos-release >/dev/null 2>&1
Pablo Greco 687a67
  (file /etc/redhat-release | grep -E "symbolic link to .?centos-release.?"  >/dev/null 2>&1) &&\
Pablo Greco 687a67
  (file /etc/system-release | grep -E "symbolic link to .?centos-release.?"  >/dev/null 2>&1)
Athmane Madjoudj 66dad5
else
Athmane Madjoudj 66dad5
   echo "This test is not comptatible with CentOS <= 5"
Athmane Madjoudj 66dad5
fi
Athmane Madjoudj 66dad5
Athmane Madjoudj 5827ae
t_CheckExitStatus $?