From 862582e06646da393fe1f6e7d5dc6bd345ef7c63 Mon Sep 17 00:00:00 2001 From: JRGTH Date: Sun, 2 Nov 2025 05:11:40 -0400 Subject: [PATCH] Minor code changes/improvements --- CHANGELOG | 1 + bastille-init | 4 ++-- version | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 192948e..e60e1e8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ====================== Version Description +1.2.24......Minor code changes/improvements. 1.2.23......Check/update bastille config parameters on runtime. 1.2.22......Make sure minor changes are always applied. 1.2.21......Check/update bastille config parameters on runtime. diff --git a/bastille-init b/bastille-init index 8f630d2..5290996 100755 --- a/bastille-init +++ b/bastille-init @@ -1442,7 +1442,7 @@ update_config() # Check/append network parameters. if ! grep -qw 'bastille_network_vnet_type=' ${INSTALLPATH}/${BASTILLECONF}; then sysrc -f ${INSTALLPATH}/${BASTILLECONF} bastille_network_vnet_type="if_bridge" - elif ! sysrc -f ${INSTALLPATH}/${BASTILLECONF} -n bastille_network_vnet_type | grep -q 'if_bridge'; then + elif ! sysrc -f ${INSTALLPATH}/${BASTILLECONF} -c bastille_network_vnet_type=if_bridge; then sysrc -f ${INSTALLPATH}/${BASTILLECONF} bastille_network_vnet_type="if_bridge" fi if ! grep -qw 'bastille_network_loopback=' ${INSTALLPATH}/${BASTILLECONF}; then @@ -1450,7 +1450,7 @@ update_config() fi if ! grep -qw 'bastille_network_pf_ext_if=' ${INSTALLPATH}/${BASTILLECONF}; then sysrc -f ${INSTALLPATH}/${BASTILLECONF} bastille_network_pf_ext_if="ext_if" - elif ! sysrc -f ${INSTALLPATH}/${BASTILLECONF} -n bastille_network_pf_ext_if | grep -q 'ext_if'; then + elif ! sysrc -f ${INSTALLPATH}/${BASTILLECONF} -c bastille_network_pf_ext_if=ext_if; then sysrc -f ${INSTALLPATH}/${BASTILLECONF} bastille_network_pf_ext_if="ext_if" fi if ! grep -qw 'bastille_network_pf_table=' ${INSTALLPATH}/${BASTILLECONF}; then diff --git a/version b/version index a93a6f7..95a7a34 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.2.23 +1.2.24