2.25_disable_automounting.sh

This commit is contained in:
thibault.dewailly
2016-04-07 07:46:44 +02:00
parent a22c47c97d
commit 31454e394d
3 changed files with 73 additions and 0 deletions

View File

@ -1,5 +1,20 @@
# CIS Debian 7 Hardening Utility functions
#
# Service Boot Checks
#
is_service_enabled() {
local SERVICE=$1
if [ $(find /etc/rc?.d/ -name "S*$SERVICE" -print | wc -l) -gt 0 ]; then
debug "Service $SERVICE is enabled"
FNRET=0
else
debug "Service $SERVICE is disabled"
FNRET=1
fi
}
#
# Kernel Options checks