mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-22 02:33:42 +02:00
2.25_disable_automounting.sh
This commit is contained in:
15
lib/utils.sh
15
lib/utils.sh
@ -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
|
||||
|
Reference in New Issue
Block a user