summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/meshwizard/files/usr
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2012-06-03 09:05:13 +0000
committerManuel Munz <freifunk@somakoma.de>2012-06-03 09:05:13 +0000
commit84dc8244d7099eeded556dd054be13046c4eab14 (patch)
tree35fe5c57ee00c3e67ee1bcb0ef7007ba8055d8bd /contrib/package/meshwizard/files/usr
parent67e8793393935d07160d848801d4ce8c2feb6f45 (diff)
contrib/meshwizard: Cleanup olsrd config (Remove httpinfo and wlan interface
Diffstat (limited to 'contrib/package/meshwizard/files/usr')
-rwxr-xr-xcontrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh
index 29258694dc..11ea3f17f8 100755
--- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh
+++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh
@@ -4,6 +4,17 @@
. /etc/functions.sh
. $dir/functions.sh
+# Clean the config, remove httpinfo and interface wlan
+uci -q delete olsrd.olsrd_httpinfo
+handle_interface() {
+ config_get interface "$1" interface
+ if [ "$interface" = "wlan" ]; then
+ uci delete olsrd.$1
+ fi
+}
+config_foreach handle_interface Interface
+uci_commitverbose "Cleanup olsrd config" olsrd
+
#Rename olsrd basic settings
handle_olsrd() {
if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then