From: kn Date: Fri, 20 Jan 2023 17:15:22 +0000 (+0000) Subject: Sync usage with SYNOPSIS, mention that -x may use stdout X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4493dc292f90a38fd694611347388d75e36c090a;p=openbsd Sync usage with SYNOPSIS, mention that -x may use stdout Feedback from jmc and Crystal Kolipe OK jmc --- diff --git a/usr.sbin/rdsetroot/rdsetroot.8 b/usr.sbin/rdsetroot/rdsetroot.8 index 2fc408962b6..9ec02988dff 100644 --- a/usr.sbin/rdsetroot/rdsetroot.8 +++ b/usr.sbin/rdsetroot/rdsetroot.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rdsetroot.8,v 1.2 2019/04/05 21:44:32 schwarze Exp $ +.\" $OpenBSD: rdsetroot.8,v 1.3 2023/01/20 17:15:22 kn Exp $ .\" .\" Copyright (c) 2019 Theo de Raadt .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 5 2019 $ +.Dd $Mdocdate: January 20 2023 $ .Dt RDSETROOT 8 .Os .Sh NAME @@ -45,6 +45,11 @@ Debug. Rather than inserting, extract the .Ar disk.fs image. +If +.Ar disk.fs +is not specified, +.Nm +writes to standard output. The disk can be made accessible using .Xr vnconfig 8 , filesystems can be manipulated, and finally re-inserted into the RAMDISK kernel. diff --git a/usr.sbin/rdsetroot/rdsetroot.c b/usr.sbin/rdsetroot/rdsetroot.c index dcc705f7022..fc2e7e0940d 100644 --- a/usr.sbin/rdsetroot/rdsetroot.c +++ b/usr.sbin/rdsetroot/rdsetroot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rdsetroot.c,v 1.3 2021/10/24 21:24:19 deraadt Exp $ */ +/* $OpenBSD: rdsetroot.c,v 1.4 2023/01/20 17:15:22 kn Exp $ */ /* * Copyright (c) 2019 Sunil Nimmagadda @@ -294,6 +294,6 @@ usage(void) { extern char *__progname; - fprintf(stderr, "usage: %s [-dx] bsd [fs]\n", __progname); + fprintf(stderr, "usage: %s [-dx] kernel [disk.fs]\n", __progname); exit(1); }