]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
committing changes in /etc after emerge run
authorfrank <frank@bruni.home.brehm-online.com>
Sun, 15 Jan 2012 22:26:40 +0000 (23:26 +0100)
committerFrank Brehm <root@bruni.home.brehm-online.com>
Sun, 15 Jan 2012 22:26:40 +0000 (23:26 +0100)
Package changes:
+net-misc/dhcpcd-5.2.12

.etckeeper
dhcpcd.conf [new file with mode: 0644]
init.d/dhcpcd [new file with mode: 0755]

index 48146cfa8f59bccf25921a80a49c72c4d1a70e35..411bccb181f9a366b5d734d8596c9740d8650025 100755 (executable)
@@ -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 (file)
index 0000000..eb625a7
--- /dev/null
@@ -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 (executable)
index 0000000..5d350c0
--- /dev/null
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Roy Marples <roy@marples.name>
+# 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