tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dhcpcd glue for rc.d/network and sysinst
On Tue, May 27, 2008 at 02:58:48PM +0200, Hubert Feyrer wrote:
> On Tue, 27 May 2008, Joerg Sonnenberger wrote:
>> Patch attached, it needs work :-)
>
> Make it clear that the "dhcp" is meant literally:
>
> .Dq dhcp
>
> the rest looks ok - commit!
OK, attached patch does that and adds a forward reference to dhclient's
variable.
Joerg
Index: ifconfig.if.5
===================================================================
RCS file: /data/repo/netbsd/src/share/man/man5/ifconfig.if.5,v
retrieving revision 1.8
diff -u -p -r1.8 ifconfig.if.5
--- ifconfig.if.5 24 Nov 2005 17:28:46 -0000 1.8
+++ ifconfig.if.5 27 May 2008 13:41:44 -0000
@@ -26,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd November 24, 2005
+.Dd May 27, 2008
.Dt IFCONFIG.IF 5
.Os
.Sh NAME
@@ -51,6 +51,11 @@ Normally, a line will be evaluated as co
.Dq Li ifconfig if
will be prepended on evaluation.
.Pp
+If the line is equal to
+.Dq dhcp ,
+.Xr dhcpcd 8
+will be started for the interface.
+.Pp
If a line is empty, or starts with
.Sq # ,
the line will be ignored as comment.
Index: rc.conf.5
===================================================================
RCS file: /data/repo/netbsd/src/share/man/man5/rc.conf.5,v
retrieving revision 1.115
diff -u -p -r1.115 rc.conf.5
--- rc.conf.5 15 Apr 2008 11:17:48 -0000 1.115
+++ rc.conf.5 27 May 2008 13:41:26 -0000
@@ -32,7 +32,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd May 15, 2007
+.Dd May 27, 2008
.Dt RC.CONF 5
.Os
.Sh NAME
@@ -450,7 +450,10 @@ or
Set to
.Sq YES
to configure some or all network interfaces using
-the DHCP client.
+the ISC DHCP client.
+See the
+.Sy ifconfig_xxN
+variable for an alternative way to start use DHCP.
If you set
.Sy dhclient
to
@@ -654,7 +657,11 @@ parameters in
.Pa /etc/ifconfig.xxN
and then in the variable
.Sy ifconfig_xxN .
-The contents of the file or the variable are handed to ifconfig
+If this variable is equal to
+.Dq dhcp ,
+.Xr dhcpcd 8
+is started for the interface.
+Otherwise the contents of the file or the variable are handed to ifconfig
after the interface name.
If
.Sy auto_ifconfig
Home |
Main Index |
Thread Index |
Old Index