From fc653e429355dafba76db420b2b0cbc7c17978d1 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 15 May 2022 20:45:00 +0200 Subject: [PATCH] man: document initctl cond get Signed-off-by: Joachim Wiberg --- man/initctl.8 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/man/initctl.8 b/man/initctl.8 index 07c76b1b..7aa7f205 100644 --- a/man/initctl.8 +++ b/man/initctl.8 @@ -124,6 +124,20 @@ i.e., activates changes .It Nm Ar cond set Ar COND Set (assert) user-defined condition, .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 Clear (deassert) user-defined condition, .Cm -usr/COND