diff options
author | Karel Kočí <cynerd@email.cz> | 2020-09-26 11:21:29 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-09-26 11:21:29 +0200 |
commit | ca796b169e12d420a27ce18d75a80d689c6f3822 (patch) | |
tree | 24a227cfff5fd08cd8373a2e95acba61e7e7f5f5 /sentinel-fwlogs/files/uci-defaults | |
parent | 5fee4bd515d55cb1ded1bed0c34fb89c22e01a87 (diff) | |
download | openwrt-personal-pkgs-ca796b169e12d420a27ce18d75a80d689c6f3822.tar.gz openwrt-personal-pkgs-ca796b169e12d420a27ce18d75a80d689c6f3822.tar.bz2 openwrt-personal-pkgs-ca796b169e12d420a27ce18d75a80d689c6f3822.zip |
Add packages for testing
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 |