Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2016-04-26 14:40:21 +0300
committermboelen <michael@cisofy.com>2016-04-26 14:40:21 +0300
commit55799a524c19ee4f7ebc291ad9b0153796303383 (patch)
treec59a8b41d74af33fc8b587fed83241d165445c92 /include/functions
parent2cefdb79d6ea80d5cb897064c6e8df92312a63b4 (diff)
Added developer mode (--developer)
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/functions b/include/functions
index b29a29e9..e7fdd97a 100644
--- a/include/functions
+++ b/include/functions
@@ -44,6 +44,7 @@
# FileIsReadable Check if a file is readable or directory accessible
# GetHostID Retrieve an unique ID for this host
# IsDebug Check if --debug is used
+# IsDeveloperMode Check if --developer is used
# IsRunning Check if a process is running
# InsertSection Insert a section block
# InsertPluginSection Insert a section block for plugins
@@ -180,6 +181,7 @@
return $RETVAL
}
+
################################################################################
# Name : TestCase_Equal()
# Description : Test case for checking if value whether value is equal to value
@@ -898,6 +900,17 @@
################################################################################
+ # Name : IsDeveloperMode()
+ # Description : Check if we are in development mode (--developer)
+ # Returns : (0 - True, 1 - False)
+ ################################################################################
+
+ IsDeveloperMode() {
+ if [ ${DEVELOPER_MODE} -eq 1 ]; then return 0; else return 1; fi
+ }
+
+
+ ################################################################################
# Name : IsRunning()
# Description : Check if a process is running
# Returns : 0 (process is running), 1 (process not running)