summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/meshwizard/files/usr
diff options
context:
space:
mode:
authorManuel Munz <munz@comuno.net>2015-05-30 20:45:17 +0200
committerManuel Munz <munz@comuno.net>2015-05-30 20:45:17 +0200
commit595c637c3bb798f85a93a07d45c4ef568a3ce706 (patch)
tree06eac5df1d0e6a602d39e22658ffac663c192fb5 /contrib/package/meshwizard/files/usr
parentd447b7e9f27c05c9f091c95a296a04126234d16d (diff)
meshwizard: use different port (9091) for ipv6 jsoninfo
Diffstat (limited to 'contrib/package/meshwizard/files/usr')
-rwxr-xr-xcontrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh10
1 files changed, 7 insertions, 3 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 9d18a582ac..f51b75e6ac 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
@@ -115,12 +115,16 @@ setup_watchdog() {
}
setup_jsoninfo() {
- # Setup jsoninfo
+ # Setup jsoninfo
+ proto="$1"
uci batch <<- EOF
set $cfg.olsrd_jsoninfo=LoadPlugin
set $cfg.olsrd_jsoninfo.library="olsrd_jsoninfo.so.0.0"
EOF
- uci_commitverbose "Setup olsr jsoninfo plugin" $cfg
+ if [ "$proto" = "6" ]; then
+ uci set $cfg.olsrd_jsoninfo.port='9091'
+ fi
+ uci_commitverbose "Setup olsr jsoninfo plugin" $cfg
}
@@ -140,6 +144,6 @@ for proto in $protocols; do
setup_nameservice
setup_dyngw_plain
setup_watchdog
- setup_jsoninfo
+ setup_jsoninfo $proto
done