From 2b945eda3da145c7434cd7cc9ebc6392dcbea15d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 13 Sep 2012 12:54:36 +0200 Subject: agetty: add \4 and \6 issue file sequences to print IP addresses Based on Andrea Bonomi ideas. Signed-off-by: Karel Zak --- term-utils/agetty.8 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'term-utils/agetty.8') diff --git a/term-utils/agetty.8 b/term-utils/agetty.8 index ebfdb961b..e400ec855 100644 --- a/term-utils/agetty.8 +++ b/term-utils/agetty.8 @@ -268,6 +268,14 @@ may contain certain escape codes to display the system name, date and time etc. All escape codes consist of a backslash (\\) immediately followed by one of the letters explained below. +.TP +4 or 4{interface} +Insert the IPv4 address of the machine hostname or IPv4 address the configured +network interface if the interface argument is specified (e.g. \\4{eth0}). +.TP +6 or 6{interface} +Insert the IPv6 address of the machine hostname or IPv6 address the configured +network interface if the interface argument is specified (e.g. \\6{eth0}} .TP b Insert the baudrate of the current line. -- cgit v1.2.3-55-g7522