Gentoo Archives: gentoo-commits

From: "William Hubbs (williamh)" <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/dhcpcd/files: dhcpcd.initd-1
Date: Thu, 27 Jan 2011 20:31:41
Message-Id: 20110127203131.D8D6720054@flycatcher.gentoo.org
1 williamh 11/01/27 20:31:31
2
3 Added: dhcpcd.initd-1
4 Log:
5 fix init script so it is compatible with baselayout-1 for bug #346805.
6
7 (Portage version: 2.2.0_alpha19/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 net-misc/dhcpcd/files/dhcpcd.initd-1
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/files/dhcpcd.initd-1?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/files/dhcpcd.initd-1?rev=1.1&content-type=text/plain
14
15 Index: dhcpcd.initd-1
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2011 Roy Marples <roy@×××××××.name>
19 # All rights reserved. Released under the 2-clause BSD license.
20
21 command=/sbin/dhcpcd
22 pidfile=/var/run/dhcpcd.pid
23 command_args=-q
24 name="DHCP Client Daemon"
25
26 depend()
27 {
28 if [ "${RC_VERSION:-0}" != "0" ]; then
29 provide net
30 need localmount
31 use logger network
32 after bootmisc modules
33 before dns
34 fi
35 }
36
37 if [ "${RC_VERSION:-0}" = "0" ]; then
38 start()
39 {
40 eerror "This script cannot be used for baselayout-1."
41 return 1
42 }
43 fi