mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
man: document initctl cond get
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
94d55cb7dd
commit
fc653e4293
1 file changed
+14
@@ -124,6 +124,20 @@ i.e., activates changes
|
|||||||
.It Nm Ar cond set Ar COND
|
.It Nm Ar cond set Ar COND
|
||||||
Set (assert) user-defined condition,
|
Set (assert) user-defined condition,
|
||||||
.Cm +usr/COND
|
.Cm +usr/COND
|
||||||
|
.It Nm Ar cond get Ar COND
|
||||||
|
Get (quietly) the status of any condition. Defaults to user-defined
|
||||||
|
condions, but if a slash is detected, e.g.,
|
||||||
|
.Cm pid/foo
|
||||||
|
or
|
||||||
|
.Cm net/eth0/exist ,
|
||||||
|
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
|
||||||
|
.Fl v
|
||||||
|
option for a more verbose output.
|
||||||
.It Nm Ar cond clr | clear Ar COND
|
.It Nm Ar cond clr | clear Ar COND
|
||||||
Clear (deassert) user-defined condition,
|
Clear (deassert) user-defined condition,
|
||||||
.Cm -usr/COND
|
.Cm -usr/COND
|
||||||
|
|||||||
Reference in new issue
Block a user