mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Change logic to check for unmanaged nics
Resolves issue mentioned in #4327
This commit is contained in:
@@ -1640,7 +1640,8 @@ whiptail_sensor_nics() {
|
|||||||
IFS=' ' read -ra BNICS <<< "$BNICS"
|
IFS=' ' read -ra BNICS <<< "$BNICS"
|
||||||
|
|
||||||
for bond_nic in "${BNICS[@]}"; do
|
for bond_nic in "${BNICS[@]}"; do
|
||||||
if [[ "${nmcli_dev_status_list}" =~ $bond_nic\:unmanaged ]]; then
|
for dev_status in "${nmcli_dev_status_list[@]}"; do
|
||||||
|
if [[ $dev_status == "${bond_nic}:unmanaged" ]]; then
|
||||||
whiptail \
|
whiptail \
|
||||||
--title "$whiptail_title" \
|
--title "$whiptail_title" \
|
||||||
--msgbox "$bond_nic is unmanaged by Network Manager. Please remove it from other network management tools then re-run setup." \
|
--msgbox "$bond_nic is unmanaged by Network Manager. Please remove it from other network management tools then re-run setup." \
|
||||||
@@ -1648,6 +1649,7 @@ whiptail_sensor_nics() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
whiptail_set_hostname() {
|
whiptail_set_hostname() {
|
||||||
|
|||||||
Reference in New Issue
Block a user