summaryrefslogtreecommitdiff
path: root/sentinel-fwlogs/files/uci-defaults
blob: c3c264406d2bd83ded0f862d1c0b542bcec3c46f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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