summaryrefslogtreecommitdiff
path: root/lights-out.in
diff options
context:
space:
mode:
Diffstat (limited to 'lights-out.in')
-rw-r--r--lights-out.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/lights-out.in b/lights-out.in
index d063355..8d90c02 100644
--- a/lights-out.in
+++ b/lights-out.in
@@ -105,8 +105,8 @@ case "$1" in
gpio write "${outputs["$2"]}" 0 || exit $?
;;
'turn')
- if [ $# -ne 3 ] \
- || [ "x$3" != 'xon' ]; then
+ if [ $# -ne 2 ] \
+ || [ "x$2" != 'xon' ]; then
>&2 printf 'unknown command "%s"\n\n' "$*"
display_help
exit 1