mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
initctl: ensure 'cond get' support flux state
The 'initctl cond' commands were initiallý added to only manage usr conditions. Recently the 'cond get' command was expanded to allow reading general conditions as well. However, since general conditions support three states the command returned 'on' for conditions that were in flux. This patch fixes that oversight. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
7c2764790c
commit
c3c662fe64
2 files changed
+35
-8
No files matched your search
+3
-4
@@ -139,11 +139,10 @@ or
|
||||
then any condition can be read.
|
||||
.Pp
|
||||
The command is geared for scripting, check the exit code to get the
|
||||
status of the condition, or give
|
||||
.Nm
|
||||
the
|
||||
status of the condition: 0 - off, 1 - on, 255 - flux. For a more
|
||||
verbose output, use the
|
||||
.Fl v
|
||||
option for a more verbose output.
|
||||
option.
|
||||
.It Nm Ar cond clr | clear Ar COND Op COND ...
|
||||
Clear (deassert) user-defined condition,
|
||||
.Cm -usr/COND
|
||||
|
||||
Reference in new issue
Block a user