* Privilege Separation * Linux default hostname is (none), everyone is is a blank string * Leases are now dumped over the control socket - you get RA's now as well. * Better support for many IPv6 routers * NetBSD: RTM_MISS filtering * RA: Deprecate stale addresses by setting pltime 0 * DHCP6: Deprecate stale addresses by setting pltime 0 * Linux: Improve router reachability detection Note that the kernel will still say it's failed when deleting the entry * Linux: Note router preference in ip -6 route output * Linux: Fix compile warning if HAVE_IN6_ADDR_GEN_MODE_NONE isn't supported * Linux: Fix syslog support when /dev/log isn't in /dev * privsep: configure defaults to user dhcpcd if _dhcpcd or _dhcp are unsuitable * privsep: Improve error when we don't have permission to write lease * privsep: Fix hooks restarting other daemons
30 lines
648 B
Bash
Executable file
30 lines
648 B
Bash
Executable file
#!@RCD_SCRIPTS_SHELL@
|
|
|
|
# PROVIDE: dhcpcd
|
|
# REQUIRE: network mountcritlocal
|
|
# BEFORE: NETWORKING
|
|
# KEYWORD: chrootdir
|
|
|
|
# To get syslog support for chroots, add this to rc.conf:
|
|
#dhcpcd_chrootdir=/var/chroot/dhcpcd
|
|
# The directory should match the home directory of the dhcpcd user.
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
name="dhcpcd"
|
|
rcvar=$name
|
|
command="@PREFIX@/sbin/${name}"
|
|
|
|
load_rc_config $name
|
|
|
|
# Work out what pidfile dhcpcd will use based on flags
|
|
if [ -n "$flags" ]; then
|
|
myflags=$flags
|
|
else
|
|
eval myflags=\$${name}_flags
|
|
fi
|
|
pidfile=$(eval $command -P $myflags 2>/dev/null)
|
|
: ${pidfile:=/var/run/$name.pid}
|
|
unset myflags
|
|
|
|
run_rc_command "$1"
|