mirror of
https://github.com/JRGTH/xigmanas-bastille-extension.git
synced 2025-12-11 17:31:09 +01:00
Minor code changes/improvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user