mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 08:52:58 +02:00
core164: fix adding additional optionfw settings
the old code erase the settings and cannot reinstalled. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -100,9 +100,13 @@ ldconfig
|
||||
# Run convert script for IDS multiple providers
|
||||
/usr/sbin/convert-ids-multiple-providers
|
||||
|
||||
# Add missing configuration settings to optionsfw configuration
|
||||
echo "DROPHOSTILE=off" > /var/ipfire/optionsfw/settings
|
||||
echo "DROPSPOOFEDMARTIAN=on" > /var/ipfire/optionsfw/settings
|
||||
# Add configuration settings to optionsfw if they are missing
|
||||
if [ "$(grep "^DROPHOSTILE" /var/ipfire/optionsfw/settings)" == "" ]; then
|
||||
echo "DROPHOSTILE=off" >> /var/ipfire/optionsfw/settings
|
||||
fi
|
||||
if [ "$(grep "^DROPSPOOFEDMARTIAN" /var/ipfire/optionsfw/settings)" == "" ]; then
|
||||
echo "DROPSPOOFEDMARTIAN=on" >> /var/ipfire/optionsfw/settings
|
||||
fi
|
||||
|
||||
# Apply sysctl changes
|
||||
/etc/init.d/sysctl start
|
||||
|
||||
Reference in New Issue
Block a user