/[gentoo-x86]/net-misc/dhcp/files/dhcpd.init5
Gentoo

Diff of /net-misc/dhcp/files/dhcpd.init5

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1#!/sbin/runscript 1#!/sbin/runscript
2# Copyright 1999-2011 Gentoo Foundation 2# Copyright 1999-2012 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2 3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcpd.init5,v 1.1 2011/12/04 22:45:07 vapier Exp $ 4# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcpd.init5,v 1.2 2012/11/11 21:42:02 vapier Exp $
5 5
6extra_commands="configtest" 6extra_commands="configtest"
7 7
8: ${DHCPD_CONF:=/etc/dhcp/${SVCNAME}.conf} 8: ${DHCPD_CONF:=/etc/dhcp/${SVCNAME}.conf}
9 9
10depend() { 10depend() {
11 need net 11 need net
12 use logger dns 12 use logger dns #@slapd@
13} 13}
14 14
15get_var() { 15get_var() {
16 local var="$(sed -n 's/^[[:blank:]]\?'"$1"' "*\([^#";]\+\).*/\1/p' "${chroot}${DHCPD_CONF}")" 16 local var="$(sed -n 's/^[[:blank:]]\?'"$1"' "*\([^#";]\+\).*/\1/p' "${chroot}${DHCPD_CONF}")"
17 echo ${var:-$2} 17 echo ${var:-$2}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20