From 5f1006cb205f37a2027cd23e297fe8b5c9843715 Mon Sep 17 00:00:00 2001 From: Jan Sembera Date: Wed, 25 Feb 2015 22:05:49 +0100 Subject: [PATCH] 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 --- ipv6/aiccu/files/aiccu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"