git: rc.d: Introduce 'dhcp_client' to wrap over dhclient and dhcpcd
Aaron LI
aly at crater.dragonflybsd.org
Wed Nov 14 04:54:16 PST 2018
commit 817cf58581c06bb4ce35e4fa5895d14473c9718b
Author: Aaron LI <aly at aaronly.me>
Date: Thu Oct 25 20:25:03 2018 +0800
rc.d: Introduce 'dhcp_client' to wrap over dhclient and dhcpcd
The new 'dhcp_client' rc script is a wrapper to start either dhclient(8)
or dhcpcd(8) based on the value of the 'dhcp_client' rc variable.
Other rc scripts are updated to depend on this wrapper instead of the
explicit 'dhclient'. This eases the migration from dhclient(8) to
dhcpcd(8) later.
Update rc.conf.5 and dhcp.8 man pages accordingly.
Meanwhile, remove the two obsolete variables 'dhcp_{program,flags}' from
/etc/rc.subr.
Summary of changes:
etc/defaults/pfi.conf | 6 +++---
etc/defaults/rc.conf | 4 +++-
etc/devd.conf | 8 ++++----
etc/network.subr | 4 ++--
etc/rc.d/Makefile | 2 +-
etc/rc.d/dhcp_client | 36 ++++++++++++++++++++++++++++++++++++
etc/rc.d/netif | 3 +--
etc/rc.subr | 10 ++++------
share/man/man5/rc.conf.5 | 26 +++++++++++++++++---------
share/man/man8/dhcp.8 | 38 ++++++++++++++++++++++++++------------
10 files changed, 97 insertions(+), 40 deletions(-)
create mode 100644 etc/rc.d/dhcp_client
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/817cf58581c06bb4ce35e4fa5895d14473c9718b
--
DragonFly BSD source repository
More information about the Commits
mailing list