aboutsummaryrefslogtreecommitdiff
path: root/ipv6
diff options
context:
space:
mode:
authorJan Sembera <jsembera@google.com>2015-02-25 22:05:49 +0100
committerJan Sembera <fis@bofh.cz>2015-03-02 21:43:53 +0100
commit5f1006cb205f37a2027cd23e297fe8b5c9843715 (patch)
tree35cbaa887bf53abdc1dceb92e27b2d408ec03cd6 /ipv6
parent022b27604bb2d7d04e4d0ce936c9a148157388e7 (diff)
aiccu: fix requiretls option handling
requiretls is a boolean value in aiccu config that only accepts true and false as values, not "1" or "0" that UCI provides. Signed-off-by: Jan Sembera <jsembera@google.com>
Diffstat (limited to 'ipv6')
-rwxr-xr-xipv6/aiccu/files/aiccu.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipv6/aiccu/files/aiccu.sh b/ipv6/aiccu/files/aiccu.sh
index 38d8191f5..584574b74 100755
--- a/ipv6/aiccu/files/aiccu.sh
+++ b/ipv6/aiccu/files/aiccu.sh
@@ -36,7 +36,7 @@ proto_aiccu_setup() {
[ -n "$server" ] && echo "server $server" >> "$CFGFILE"
[ -n "$protocol" ] && echo "protocol $protocol" >> "$CFGFILE"
[ -n "$tunnelid" ] && echo "tunnel_id $tunnelid" >> "$CFGFILE"
- [ -n "$requiretls" ] && echo "requiretls $requiretls" >> "$CFGFILE"
+ [ "$requiretls" == 1 ] && echo "requiretls true" >> "$CFGFILE"
[ "$nat" == 1 ] && echo "behindnat true" >> "$CFGFILE"
[ "$heartbeat" == 1 ] && echo "makebeats true" >> "$CFGFILE"
[ "$verbose" == 1 ] && echo "verbose true" >> "$CFGFILE"