From bb115d2b35f37706b0f3dace0c4c0bb46fda2f14 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 28 Nov 2022 00:03:44 +0100 Subject: [PATCH] man: document -b option to smcroutectl Issue #189 Signed-off-by: Joachim Wiberg --- man/smcroutectl.8 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/man/smcroutectl.8 b/man/smcroutectl.8 index bdd9384f..b2cc006c 100644 --- a/man/smcroutectl.8 +++ b/man/smcroutectl.8 @@ -8,7 +8,7 @@ .Xr smcrouted 8 .Sh SYNOPSIS .Nm smcroutectl -.Op Fl dptv +.Op Fl bdptv .Op Fl i Ar NAME .Op Fl u Ar FILE .Op Ar COMMAND @@ -36,6 +36,16 @@ The following .Nm options are available: .Bl -tag -width Ds +.It Fl b +Batch mode, read commands from stdin. +.Bd -unfilled -offset indent +$ sudo smcroutectl -b <<-EOF + join eth0 225.1.2.3 + add eth0 192.168.1.42 225.1.2.3 eth1 eth2 + rem eth1 225.3.4.5 eth3 + leave eth1 225.3.4.5 + EOF +.Ed .It Fl d Enable detailed output in show commands. .It Fl i Ar NAME