Merge pull request #10317 from Security-Onion-Solutions/airgaps

Remove escaping from nmcli
This commit is contained in:
Mike Reeves
2023-05-09 11:58:02 -04:00
committed by GitHub

View File

@@ -2293,8 +2293,8 @@ set_initial_firewall_access() {
set_management_interface() {
title "Setting up the main interface"
if [ "$address_type" = 'DHCP' ]; then
logCmd "nmcli con mod \"$MNIC\" connection.autoconnect yes"
logCmd "nmcli con up \"$MNIC\""
logCmd "nmcli con mod $MNIC connection.autoconnect yes"
logCmd "nmcli con up $MNIC"
else
# Set Static IP
nmcli con mod "$MNIC" ipv4.addresses "$MIP"/"$MMASK"\