summaryrefslogtreecommitdiff
path: root/sentinel-minipot/files/uci-defaults
diff options
context:
space:
mode:
Diffstat (limited to 'sentinel-minipot/files/uci-defaults')
-rw-r--r--sentinel-minipot/files/uci-defaults25
1 files changed, 0 insertions, 25 deletions
diff --git a/sentinel-minipot/files/uci-defaults b/sentinel-minipot/files/uci-defaults
deleted file mode 100644
index f90516c..0000000
--- a/sentinel-minipot/files/uci-defaults
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-set -e
-. /lib/functions/sentinel-firewall.sh
-
-# Minipot entry in sentinel config
-if [ "$(uci -q get sentinel.minipot)" != "minipot" ]; then
- uci -q batch <<EOT
- delete sentinel.minipot
- set sentinel.minipot='minipot'
- commit sentinel.minipot
-EOT
-fi
-
-# Remove old firewall rules
-[ -z "$(uci -q get firewall.sentinel_minipot_telnet_mark)" ] || \
- uci -q delete firewall.sentinel_minipot_telnet_mark
-[ -z "$(uci -q get firewall.sentinel_minipot_telnet)" ] || \
- uci -q delete firewall.sentinel_minipot_telnet
-
-
-# Enable for wan interface in default
-config_firewall_default_enable "sentinel_minipot"
-
-# Always reload firewall to use latest version of sentinel-firewall script
-/etc/init.d/firewall reload