mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Setup Script - Change function for calculating cores
This commit is contained in:
@@ -26,9 +26,9 @@ LISTCORES=$(cat /proc/cpuinfo | grep processor | awk '{print $3 " \"" "core" "\"
|
|||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
bro_calculate_lbprocs() {
|
calculate_useable_cores() {
|
||||||
#Calculate total lbprocs for basic install
|
#Calculate total lbprocs for basic install
|
||||||
local CORES4BRO=$(( $CPUCORES/2 ))
|
local CORES4BRO=$(( $CPUCORES/2 - 1 ))
|
||||||
LBPROCS=$(printf "%.0f\n" $CORES4BRO)
|
LBPROCS=$(printf "%.0f\n" $CORES4BRO)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -649,6 +649,8 @@ if (whiptail_you_sure) then
|
|||||||
whiptail_management_server
|
whiptail_management_server
|
||||||
whiptail_nids
|
whiptail_nids
|
||||||
whiptail_sensor_config
|
whiptail_sensor_config
|
||||||
|
# Calculate bro lbprocs so we can call it in the prompts
|
||||||
|
calculate_useable_cores
|
||||||
if [ $NSMSETUP == 'ADVANCED' ]; then
|
if [ $NSMSETUP == 'ADVANCED' ]; then
|
||||||
whiptail_bro_pins
|
whiptail_bro_pins
|
||||||
whiptail_bond_nics_mtu
|
whiptail_bond_nics_mtu
|
||||||
|
|||||||
Reference in New Issue
Block a user