Optimizing code, cleaning up

This commit is contained in:
mboelen 2015-07-22 12:20:27 +02:00
parent e06d706c83
commit 95d08a735a

View File

@ -18,10 +18,7 @@
################################################################################# #################################################################################
# #
# Program information
# Paths where system and program binaries are located # Paths where system and program binaries are located
# Includes Sun Solaris dirs
BINPATHS="/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin \ BINPATHS="/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin \
/usr/local/libexec /usr/libexec /usr/sfw/bin /usr/sfw/sbin \ /usr/local/libexec /usr/libexec /usr/sfw/bin /usr/sfw/sbin \
/usr/sfw/libexec /opt/sfw/bin /opt/sfw/sbin /opt/sfw/libexec \ /usr/sfw/libexec /opt/sfw/bin /opt/sfw/sbin /opt/sfw/libexec \
@ -29,31 +26,9 @@ BINPATHS="/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin \
/usr/pkg/bin /usr/pkg/sbin" /usr/pkg/bin /usr/pkg/sbin"
# Do not use specific language, fall back to default # Do not use specific language, fall back to default
# Some tools with translated strings are very hard to parse
unset LANG unset LANG
#
#################################################################################
#
# Deprecated
#
#################################################################################
#
HOME_HISTORY_AUDIT_TITLE="Incorrect history file types"
HOME_HISTORY_AUDIT_DESCRIPTION=""
HOME_HISTORY_LOG_TITLE="History files type check"
HOME_HISTORY_LOG_DESCRIPTION="History files type check"
HOME_HISTORY_LOG_TEXT="History files are normally of the type 'file'. Symbolic links and other types can be riskful"
HOME_PATH_LOG_MESSAGE="A single dot in the PATH variable of a user can be a risk, while executing commands in for example a home directory."
USER_PASSWD_DOUBLEUID_AUDIT_TITLE="Non unique UIDs"
USER_PASSWD_DOUBLEUID_AUDIT_DESCRIPTION="Non unique UIDs in passwd file"
USER_PASSWD_DOUBLEUID_AUDIT_TEXT="Non unique UIDs can riskful for the system or part of a configuration mistake"
KERNEL_ACTIVE_MODULES_TITLE="Active kernel modules (KLDs)"
KERNEL_ACTIVE_MODULES_DESCRIPTION="View all active kernel modules (including kernel)"
KERNEL_ACTIVE_MODULES_TEXT="Displays the loaded kernel modules in memory. Make sure to check the integrity of the kld tools."
# #
################################################################################# #################################################################################
# #
@ -147,10 +122,10 @@ unset LANG
# #
################################################################################# #################################################################################
# #
# == Options == # * Options
#
#################################################################################
# #
# Option Description
# --------------------------------------------------------------------------
CRONJOB=0 # Run as a cronjob CRONJOB=0 # Run as a cronjob
CTESTS_PERFORMED=0 # Number of tests which are performed CTESTS_PERFORMED=0 # Number of tests which are performed
DEBUG=0 # Debugging mode (to screen) DEBUG=0 # Debugging mode (to screen)
@ -178,12 +153,12 @@ unset LANG
# #
################################################################################# #################################################################################
# #
# Colors # * Colors
#
# For improved display
# #
################################################################################# #################################################################################
# #
# Color name Description
# --------------------------------------------------------------------------
NORMAL="" NORMAL=""
WARNING="" # Bad (red) WARNING="" # Bad (red)
SECTION="" # Section (yellow) SECTION="" # Section (yellow)
@ -191,11 +166,11 @@ unset LANG
OK="" # Ok (green) OK="" # Ok (green)
BAD="" # Bad (red) BAD="" # Bad (red)
# Real color names # Normal color names
YELLOW="" # Yellow YELLOW=""
WHITE="" # White WHITE=""
GREEN="" # Green GREEN=""
RED="" # Red RED=""
PURPLE="" PURPLE=""
MAGENTA="" MAGENTA=""
BROWN="" BROWN=""