contrib/meshwizard: add ipv6only option to txtinfo/jsoninfo plugin config
This commit is contained in:
parent
516ea62f73
commit
77612e3e3e
1 changed files with 14 additions and 3 deletions
|
@ -115,18 +115,29 @@ setup_watchdog() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_jsoninfo() {
|
setup_jsoninfo() {
|
||||||
# Setup jsoninfo
|
|
||||||
proto="$1"
|
proto="$1"
|
||||||
uci batch <<- EOF
|
uci batch <<- EOF
|
||||||
set $cfg.olsrd_jsoninfo=LoadPlugin
|
set $cfg.olsrd_jsoninfo=LoadPlugin
|
||||||
set $cfg.olsrd_jsoninfo.library="olsrd_jsoninfo.so.0.0"
|
set $cfg.olsrd_jsoninfo.library="olsrd_jsoninfo.so.0.0"
|
||||||
EOF
|
EOF
|
||||||
if [ "$proto" = "6" ]; then
|
if [ "$proto" = "6" ]; then
|
||||||
uci set $cfg.olsrd_jsoninfo.port='9091'
|
uci set $cfg.olsrd_jsoninfo.ipv6only='1'
|
||||||
fi
|
fi
|
||||||
uci_commitverbose "Setup olsr jsoninfo plugin" $cfg
|
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
|
for proto in $protocols; do
|
||||||
cfg="olsrd"
|
cfg="olsrd"
|
||||||
|
@ -145,5 +156,5 @@ for proto in $protocols; do
|
||||||
setup_dyngw_plain
|
setup_dyngw_plain
|
||||||
setup_watchdog
|
setup_watchdog
|
||||||
setup_jsoninfo $proto
|
setup_jsoninfo $proto
|
||||||
|
setup_txtinfo $proto
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue