summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-08 01:30:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-08 01:30:27 +0000
commit05ff98f86d757d8ed2c41808439cb80e78aae784 (patch)
tree833269bc83296dcab834c3966179a83791da9144 /share
parent2df7eab9da7cf62ca6980328b49886f59f890df9 (diff)
make it clear that !commands are run in the single-user environment,
so only use safe command paths like /sbin and /bin; /usr may not be there...
Diffstat (limited to 'share')
-rw-r--r--share/man/man5/hostname.if.511
1 files changed, 8 insertions, 3 deletions
diff --git a/share/man/man5/hostname.if.5 b/share/man/man5/hostname.if.5
index a635d1aafc3..b07459feca9 100644
--- a/share/man/man5/hostname.if.5
+++ b/share/man/man5/hostname.if.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hostname.if.5,v 1.55 2009/12/10 22:04:59 deraadt Exp $
+.\" $OpenBSD: hostname.if.5,v 1.56 2011/07/08 01:30:26 deraadt Exp $
.\" $NetBSD: hosts.5,v 1.4 1994/11/30 19:31:20 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)hosts.5 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: December 10 2009 $
+.Dd $Mdocdate: July 8 2011 $
.Dt HOSTNAME.IF 5
.Os
.Sh NAME
@@ -192,7 +192,12 @@ the interface, such as 64.
Comments are allowed.
Anything following a comment character is treated as a comment.
.It Li \&! Ns Ar command-line
-Arbitrary shell commands can be executed using this directive.
+Arbitrary shell commands can be executed using this directive, as
+long as they are available in the single-user environment (for
+instance,
+.Pa /bin
+or
+.Pa /sbin ) .
Useful for doing interface-specific configuration such as
setting up custom routes using
.Xr route 8