summaryrefslogtreecommitdiff
path: root/ledctl.py
diff options
context:
space:
mode:
authorIngar <ingar@telenet.be>2022-02-13 16:13:10 +0100
committerIngar <ingar@telenet.be>2022-02-13 16:13:10 +0100
commitbe011ccff1c55d6d07a1d2259165c5a9ac75f9fa (patch)
tree8b26e73fc1b05ab41cd501efd238690f1e656d07 /ledctl.py
parentf886626e84b99eacda30baf8ce3e2827e8bb6cc7 (diff)
Fixed systemd boot status handling.
Diffstat (limited to 'ledctl.py')
-rw-r--r--ledctl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ledctl.py b/ledctl.py
index 5f7caed..da42efa 100644
--- a/ledctl.py
+++ b/ledctl.py
@@ -62,7 +62,11 @@ def rgbval(colorname):
'cyan': (0, 255, 255),
'pink': (255, 0, 255),
'boot': (63, 15, 0),
+ 'reboot' : (63, 15, 0),
'ready': (0, 15, 0),
+ 'halt' : (0, 0, 0),
+ 'poweroff' : (0, 0, 0),
+ 'kexec' : (63, 0, 63),
}
return switch.get(colorname, (255, 255, 255))