From: Karel Zak Date: Fri, 5 Apr 2013 10:55:20 +0000 (+0200) Subject: agetty: add --chroot to usage() and man page X-Git-Tag: v2.23-rc2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b856ee4b93979365142f9ab274e970bad88a7b8;p=thirdparty%2Futil-linux.git agetty: add --chroot to usage() and man page Signed-off-by: Karel Zak --- diff --git a/term-utils/agetty.8 b/term-utils/agetty.8 index 9cc611b039..ec279f97f4 100644 --- a/term-utils/agetty.8 +++ b/term-utils/agetty.8 @@ -176,6 +176,9 @@ Please read the SECURITY NOTICE below if you want to use this. Wait for any key before dropping to the login prompt. Can be combined with \fB\-\-autologin\fP to save memory by lazily spawning shells. .TP +\-r, \-\-chroot \fI"directory"\fP +Change root to the specified directory. +.TP \-R, \-\-hangup Do call vhangup() for a virtually hangup of the specified terminal. .TP diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 8f9c3244e1..f877d0e360 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1651,6 +1651,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out) fputs(_(" -n, --skip-login do not prompt for login\n"), out); fputs(_(" -o, --login-options options that are passed to login\n"), out); fputs(_(" -p, --loginpause wait for any key before the login\n"), out); + fputs(_(" -r, --chroot change root to the directory\n"), out); fputs(_(" -R, --hangup do virtually hangup on the tty\n"), out); fputs(_(" -s, --keep-baud try to keep baud rate after break\n"), out); fputs(_(" -t, --timeout login process timeout\n"), out);