aboutsummaryrefslogtreecommitdiffstats
path: root/main/mqtt-exec/mqtt-exec.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/mqtt-exec/mqtt-exec.initd')
-rw-r--r--main/mqtt-exec/mqtt-exec.initd4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/mqtt-exec/mqtt-exec.initd b/main/mqtt-exec/mqtt-exec.initd
index 727ee203af..8f25fdace3 100644
--- a/main/mqtt-exec/mqtt-exec.initd
+++ b/main/mqtt-exec/mqtt-exec.initd
@@ -18,8 +18,8 @@ start() {
if [ -n "$will_topic" ]; then
set -- "$@" --will-topic "$will_topic"
fi
- if yesno "$will_retained"; then
- set -- "$@" --will-retained
+ if yesno "$will_retain"; then
+ set -- "$@" --will-retain
fi
if [ -n "$will_payload" ]; then
set -- "$@" --will-payload "$will_payload"