Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Prefer dhcpcd(8) over dhclient(8).



details:   https://anonhg.NetBSD.org/src/rev/c5ad970c87d9
branches:  trunk
changeset: 781813:c5ad970c87d9
user:      roy <roy%NetBSD.org@localhost>
date:      Tue Oct 02 17:43:52 2012 +0000

description:
Prefer dhcpcd(8) over dhclient(8).

diffstat:

 distrib/notes/common/postinstall |   4 ++--
 share/man/man8/afterboot.8       |  25 ++++++++++++++++---------
 2 files changed, 18 insertions(+), 11 deletions(-)

diffs (103 lines):

diff -r 3da6f17e7adb -r c5ad970c87d9 distrib/notes/common/postinstall
--- a/distrib/notes/common/postinstall  Tue Oct 02 15:22:46 2012 +0000
+++ b/distrib/notes/common/postinstall  Tue Oct 02 17:43:52 2012 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: postinstall,v 1.76 2012/08/17 19:55:14 riz Exp $
+.\"    $NetBSD: postinstall,v 1.77 2012/10/02 17:43:52 roy Exp $
 .\"
 .\" Copyright (c) 1999-2004 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -199,7 +199,7 @@
 for more information.
 Instead of manually configuring network and naming service,
 DHCP can be used by setting
-.Li dhclient=YES
+.Li dhcpcd=YES
 in
 .Pa /etc/rc.conf .
 .Pp
diff -r 3da6f17e7adb -r c5ad970c87d9 share/man/man8/afterboot.8
--- a/share/man/man8/afterboot.8        Tue Oct 02 15:22:46 2012 +0000
+++ b/share/man/man8/afterboot.8        Tue Oct 02 17:43:52 2012 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: afterboot.8,v 1.49 2012/09/30 20:49:12 riastradh Exp $
+.\"    $NetBSD: afterboot.8,v 1.50 2012/10/02 17:43:53 roy Exp $
 .\"    $OpenBSD: afterboot.8,v 1.72 2002/02/22 02:02:33 miod Exp $
 .\"
 .\" Originally created by Marshall M. Midden -- 1997-10-20, m4%umn.edu@localhost
@@ -59,7 +59,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 26, 2010
+.Dd October 2, 2012
 .Dt AFTERBOOT 8
 .Os
 .Sh NAME
@@ -214,7 +214,7 @@
 not be confused with YP (NIS)
 .Xr domainname 1 .
 If you are using
-.Xr dhclient 8
+.Xr dhcpcd 8
 to configure network interfaces, it might override these local hostname
 settings if your DHCP server specifies client's hostname with other network
 configurations.
@@ -238,20 +238,20 @@
 if you do not wish to reboot.
 .Pp
 Alternatively, you can configure interfaces automatically via DHCP with
-.Xr dhclient 8
+.Xr dhcpcd 8
 if you have a DHCP server running somewhere on your network.
 To get
-.Xr dhclient 8
+.Xr dhcpcd 8
 to start automatically on boot,
 you will need to have this line in
 .Pa /etc/rc.conf :
 .Pp
-.Dl dhclient=YES
+.Dl dhcpcd=YES
 .Pp
 See
-.Xr dhclient 8
+.Xr dhcpcd 8
 and
-.Xr dhclient.conf 5
+.Xr dhcpcd.conf 5
 for more information on setting up a DHCP client.
 .Pp
 You can add new
@@ -341,9 +341,14 @@
 you will have to kill it by running
 .Bd -literal -offset indent
 .Ic /etc/rc.d/dhclient stop
+If you run
+.Xr dhcpcd 8
+you will have to kill it by running
+.Bd -literal -offset indent
+.Ic /etc/rc.d/dhcpcd stop
 .Pp
 .Ed
-after you flush the routes.
+before you flush the routes.
 .Pp
 If you wish to route packets between interfaces, add one or both
 of the following directives (depending on whether IPv4 or IPv6 routing
@@ -977,6 +982,7 @@
 .Xr aliases 5 ,
 .Xr crontab 5 ,
 .Xr dhclient.conf 5 ,
+.Xr dhcpcd.conf 5 ,
 .Xr exports 5 ,
 .Xr fstab 5 ,
 .Xr group 5 ,
@@ -999,6 +1005,7 @@
 .Xr ccdconfig 8 ,
 .Xr chown 8 ,
 .Xr dhclient 8 ,
+.Xr dhcpcd 8 ,
 .Xr dhcpd 8 ,
 .Xr dmesg 8 ,
 .Xr groupadd 8 ,



Home | Main Index | Thread Index | Old Index