summaryrefslogtreecommitdiff
path: root/lights-out.in
diff options
context:
space:
mode:
Diffstat (limited to 'lights-out.in')
-rw-r--r--lights-out.in7
1 files changed, 1 insertions, 6 deletions
diff --git a/lights-out.in b/lights-out.in
index 8d90c02..2071487 100644
--- a/lights-out.in
+++ b/lights-out.in
@@ -120,12 +120,7 @@ case "$1" in
;;
'turn on')
check_argument_count 1 "$@"
- value=$(
- "$0" get power
- ) || exit $?
- if [ "${value}" -eq 0 ]; then
- "$0" push power 0.1 || exit $?
- fi
+ "$0" 'turn' 'on' || exit $?
;;
*)
>&2 printf 'unknown command "%s"\n\n' "$1"