You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
424 B
18 lines
424 B
12 months ago
|
#!/bin/bash
|
||
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
||
|
# Rene Diepstraten <rene@renediepstraten.nl>
|
||
|
|
||
|
t_Log "Running $0 - check if chkconfig can list a service status"
|
||
|
|
||
|
if [ $centos_ver -ge 8 ]; then
|
||
|
echo "CentOS $centos_ver does not use chkconfig, skipping"
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
# network is used as example because it's standard with minimal install
|
||
|
|
||
|
chkconfig --list network | grep -q '3:on'
|
||
|
|
||
|
t_CheckExitStatus $?
|
||
|
|