diff options
author | Manuel Munz <munz@comuno.net> | 2015-05-30 22:02:05 +0200 |
---|---|---|
committer | Manuel Munz <munz@comuno.net> | 2015-05-30 22:02:05 +0200 |
commit | 77612e3e3ec6acc34217a32148be9a18c866751c (patch) | |
tree | e5aec0f49e737e845800bc2a3bc5739358516dbc /contrib/package/meshwizard | |
parent | 516ea62f73a9fbb50ae7f517d4c7462c4459533c (diff) |
contrib/meshwizard: add ipv6only option to txtinfo/jsoninfo plugin config
Diffstat (limited to 'contrib/package/meshwizard')
-rwxr-xr-x | contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh | 17 |
1 files changed, 14 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 f51b75e6a..d212ca472 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,18 +115,29 @@ setup_watchdog() { } 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 if [ "$proto" = "6" ]; then - uci set $cfg.olsrd_jsoninfo.port='9091' + uci set $cfg.olsrd_jsoninfo.ipv6only='1' fi uci_commitverbose "Setup olsr jsoninfo plugin" $cfg } +setup_txtinfo() { + proto="$1" + uci batch <<- EOF + set $cfg.olsrd_txtinfo=LoadPlugin + set $cfg.olsrd_txtinfo.library="olsrd_txtinfo.so.0.1" + EOF + if [ "$proto" = "6" ]; then + uci set $cfg.olsrd_txtinfo.ipv6only='1' + fi + uci_commitverbose "Setup olsr txtinfo plugin" $cfg +} + for proto in $protocols; do cfg="olsrd" @@ -145,5 +156,5 @@ for proto in $protocols; do setup_dyngw_plain setup_watchdog setup_jsoninfo $proto - + setup_txtinfo $proto done |