From e475a2bb750b2f505170a43992a759b54784f816 Mon Sep 17 00:00:00 2001 From: frank Date: Sun, 15 Jan 2012 23:26:40 +0100 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +net-misc/dhcpcd-5.2.12 --- .etckeeper | 2 ++ dhcpcd.conf | 23 +++++++++++++++++++++++ init.d/dhcpcd | 27 +++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 dhcpcd.conf create mode 100755 init.d/dhcpcd diff --git a/.etckeeper b/.etckeeper index 48146cfa..411bccb1 100755 --- a/.etckeeper +++ b/.etckeeper @@ -72,6 +72,7 @@ maybe chmod 0644 './crontab' maybe chmod 0644 './csh.env' maybe chmod 0755 './default' maybe chmod 0600 './default/useradd' +maybe chmod 0644 './dhcpcd.conf' maybe chmod 0644 './dispatch-conf.conf' maybe chmod 0644 './dmtab' maybe chmod 0644 './e2fsck.conf' @@ -171,6 +172,7 @@ maybe chmod 0755 './init.d/consolefont' maybe chmod 0755 './init.d/crypto-loop' maybe chmod 0755 './init.d/devfs' maybe chmod 0755 './init.d/device-mapper' +maybe chmod 0755 './init.d/dhcpcd' maybe chmod 0755 './init.d/dmesg' maybe chmod 0755 './init.d/dmeventd' maybe chmod 0755 './init.d/fsck' diff --git a/dhcpcd.conf b/dhcpcd.conf new file mode 100644 index 00000000..eb625a70 --- /dev/null +++ b/dhcpcd.conf @@ -0,0 +1,23 @@ +# A sample configuration for dhcpcd. +# See dhcpcd.conf(5) for details. + +# Inform the DHCP server of our hostname for DDNS. +hostname +# To share the DHCP lease across OSX and Windows a ClientID is needed. +# Enabling this may get a different lease than the kernel DHCP client. +# Some upstream DHCP servers may also require a ClientID, such as FRITZ!Box. +#clientid + +# A list of options to request from the DHCP server. +option domain_name_servers, domain_name, domain_search, host_name +option classless_static_routes +# Most distributions have NTP support. +option ntp_servers +# Respect the network MTU. +option interface_mtu +# A ServerID is required by RFC2131. +require dhcp_server_identifier + +# A hook script is provided to lookup the hostname if not set by the DHCP +# server, but it should not be run by default. +nohook lookup-hostname diff --git a/init.d/dhcpcd b/init.d/dhcpcd new file mode 100755 index 00000000..5d350c07 --- /dev/null +++ b/init.d/dhcpcd @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2011 Roy Marples +# All rights reserved. Released under the 2-clause BSD license. + +command=/sbin/dhcpcd +pidfile=/var/run/dhcpcd.pid +command_args=-q +name="DHCP Client Daemon" + +depend() +{ + if [ "${RC_VERSION:-0}" != "0" ]; then + provide net + need localmount + use logger network + after bootmisc modules + before dns + fi +} + +if [ "${RC_VERSION:-0}" = "0" ]; then + start() + { + eerror "This script cannot be used for baselayout-1." + return 1 + } +fi -- 2.39.5