summaryrefslogtreecommitdiffstats
path: root/share/man/man5/myname.5
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2020-11-29 20:14:06 +0000
committerderaadt <deraadt@openbsd.org>2020-11-29 20:14:06 +0000
commit4f9a4669cf63e035252969a85fcd7af33c08a80c (patch)
tree27ef6192372f6e0012e960eb13e3305a3dd0b016 /share/man/man5/myname.5
parentSync bsnprintf() with ldapd/util.c r1.13 (diff)
downloadwireguard-openbsd-4f9a4669cf63e035252969a85fcd7af33c08a80c.tar.xz
wireguard-openbsd-4f9a4669cf63e035252969a85fcd7af33c08a80c.zip
Add support for !command to mygate, so that netstart has a late opportunity
to perform network configuration (for example, "!route source -ifp em0") Split mygate and myname manual pages (how did anyone ever believe these are related), and perform hostname configuration much earlier in rc. discussed with benno, claudio, jmc, etc etc, last version of !command parser by tb
Diffstat (limited to 'share/man/man5/myname.5')
-rw-r--r--share/man/man5/myname.551
1 files changed, 7 insertions, 44 deletions
diff --git a/share/man/man5/myname.5 b/share/man/man5/myname.5
index 6234c637a14..a2dbdabc457 100644
--- a/share/man/man5/myname.5
+++ b/share/man/man5/myname.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: myname.5,v 1.9 2017/07/13 19:16:33 jmc Exp $
+.\" $OpenBSD: myname.5,v 1.10 2020/11/29 20:14:06 deraadt Exp $
.\"
.\" Copyright (c) 2003 Jason McIntyre <jmc@openbsd.org>
.\"
@@ -14,18 +14,16 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: July 13 2017 $
+.Dd $Mdocdate: November 29 2020 $
.Dt MYNAME 5
.Os
.Sh NAME
-.Nm myname , mygate
-.Nd default hostname and gateway
+.Nm myname
+.Nd default hostname
.Sh DESCRIPTION
The
.Nm myname
-and
-.Nm mygate
-files are read by
+file is read by
.Xr netstart 8
at system startup time.
.Pp
@@ -50,48 +48,14 @@ See
.Xr hostname 7
for a description of hostname resolution.
.Pp
-.Pa /etc/mygate ,
-if it exists,
-contains the address of the gateway host.
-The gateway is added to the routing tables by the
-.Xr route 8
-utility.
-If
-.Pa /etc/mygate
-does not exist, no default gateway is added to the routing tables.
-The file may contain gateway addresses for both IPv4 and IPv6 networks:
-in dotted quad notation for v4
-.Pq e.g. 192.0.2.1
-or in colon notation for v6
-.Pq e.g. 2001:db8::1 .
-Each address must be specified on a separate line.
-If more than one address of a specific family is found,
-only the first is used \- all other addresses of that family are ignored.
-.Pp
-.Pa /etc/mygate
-is processed after all interfaces have been configured.
-If any
-.Xr hostname.if 5
-files contain
-.Dq dhcp
-directives,
-IPv4 entries in
-.Pa /etc/mygate
-will be ignored.
-If they contain
-.Dq autoconf
-directives,
-IPv6 entries will be ignored.
.Pp
Empty lines and lines beginning with
.Sq #
-in either file are ignored.
+are ignored.
.Sh FILES
.Bl -tag -width "/etc/myname" -compact
.It Pa /etc/myname
Default hostname.
-.It Pa /etc/mygate
-Default gateway address(es).
.El
.Sh SEE ALSO
.Xr hostname 1 ,
@@ -99,8 +63,7 @@ Default gateway address(es).
.Xr hosts 5 ,
.Xr resolv.conf 5 ,
.Xr hostname 7 ,
-.Xr netstart 8 ,
-.Xr route 8
+.Xr netstart 8
.Sh HISTORY
This manual page first appeared in
.Ox 3.4 .