bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone

Blame tests/p_initscripts/initscripts_centos_brand_rcsysinit.sh

Athmane Madjoudj df052c
#!/bin/sh
Athmane Madjoudj df052c
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj df052c
Athmane Madjoudj df052c
t_Log "Running $0 - initscripts CentOS branding "
Athmane Madjoudj df052c
Athmane Madjoudj df052c
if (t_GetPkgRel basesystem | grep -q el6)
Athmane Madjoudj df052c
then
Athmane Madjoudj df052c
   t_Log "Test not required for CentOS 6.x"
Athmane Madjoudj df052c
   exit 0
Athmane Madjoudj df052c
else
Athmane Madjoudj df052c
    grep "CentOS" /etc/rc.sysinit > /dev/null 2>&1
Athmane Madjoudj df052c
fi
Athmane Madjoudj df052c
Athmane Madjoudj df052c
t_CheckExitStatus $?