diff options
Diffstat (limited to 'sentinel-fwlogs/files/uci-defaults')
-rwxr-xr-x | sentinel-fwlogs/files/uci-defaults | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sentinel-fwlogs/files/uci-defaults b/sentinel-fwlogs/files/uci-defaults new file mode 100755 index 0000000..c3c2644 --- /dev/null +++ b/sentinel-fwlogs/files/uci-defaults @@ -0,0 +1,19 @@ +#!/bin/sh +set -e +. /lib/functions/sentinel-firewall.sh + +# fwlogs entry in sentinel config +if [ "$(uci -q get sentinel.fwlogs)" != "fwlogs" ]; then + uci -q batch <<EOT + delete sentinel.fwlogs + set sentinel.fwlogs='fwlogs' + commit sentinel.fwlogs +EOT +fi + + +# Enable for default interface +config_firewall_default_enable "sentinel_fwlogs" + +# Always reload firewall to use latest version of sentinel-firewall script +/etc/init.d/firewall reload |