summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/meshwizard/files
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-06-29 11:28:28 +0000
committerManuel Munz <freifunk@somakoma.de>2011-06-29 11:28:28 +0000
commit4c139d3b936b49d736392da67bab40c868093278 (patch)
tree57a1f29828de5b24d4c6e54c79843e96974dc582 /contrib/package/meshwizard/files
parentcdba10c64c6919470f4af8b7ecc93b755a372e2d (diff)
contrib/meshwizard: Enable luci_splash and set local_restrict for wan firewall zone
Diffstat (limited to 'contrib/package/meshwizard/files')
-rwxr-xr-xcontrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall.sh9
-rwxr-xr-xcontrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_splash.sh3
2 files changed, 12 insertions, 0 deletions
diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall.sh
index 299b167fe5..c9681425ff 100755
--- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall.sh
+++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall.sh
@@ -12,6 +12,15 @@ config_load firewall
type="$(uci -q get wireless.$net.type)"
vap="$(uci -q get meshwizard.netconfig.$net\_vap)"
+# Add local_restrict to wan firewall zone
+handle_zonewan() {
+ config_get name "$1" name
+ if [ "$name" == "wan" ]; then
+ uci set firewall.$1.local_restrict=1
+ fi
+}
+config_foreach handle_zonewan zone && echo " + Enable local_restrict for zone wan"
+
# Delete old firewall zone for freifunk
handle_fwzone() {
config_get name "$1" name
diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_splash.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_splash.sh
index f4375a4913..b28ccc93c7 100755
--- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_splash.sh
+++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_splash.sh
@@ -30,3 +30,6 @@ EOF
echo " network: ${netrenamed}dhcp"
uci commit
+
+/etc/init.d/luci_splash enable
+