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 01:28:22AM +0200, Hubert Feyrer wrote:
> On Mon, 26 May 2008, Joerg Sonnenberger wrote:
>> the attached patch implements two functions:
>> (1) It makes ifconfig_bge0=dhcp start/stop dhcpcd, same for single lines
>> in /etc/ifconfig_bge0. I'm not sure where this should be documented.
>
> ifconfig.if(5) and maybe rc.conf(5)
Patch attached, it needs work :-)
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 12:33:07 -0000
@@ -51,6 +51,10 @@ Normally, a line will be evaluated as co
.Dq Li ifconfig if
will be prepended on evaluation.
.Pp
+If the line is equal to 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 12:33:52 -0000
@@ -654,7 +654,10 @@ 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 has the value 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