diff options
author | Brandon Low <lostlogic@gentoo.org> | 2002-06-17 04:07:11 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2002-06-17 04:07:11 +0000 |
commit | bca96d4682750a1183e93779912a4eefe9d0b897 (patch) | |
tree | 95f3e463f5d4dc7a29590a2ee3442decd81bc28d /net-misc/dhcp | |
parent | Fix configuration, see changelog (diff) | |
download | gentoo-2-bca96d4682750a1183e93779912a4eefe9d0b897.tar.gz gentoo-2-bca96d4682750a1183e93779912a4eefe9d0b897.tar.bz2 gentoo-2-bca96d4682750a1183e93779912a4eefe9d0b897.zip |
forgot 2
Diffstat (limited to 'net-misc/dhcp')
-rw-r--r-- | net-misc/dhcp/files/conf.dhcpd | 3 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcp.rc7 | 31 |
2 files changed, 34 insertions, 0 deletions
diff --git a/net-misc/dhcp/files/conf.dhcpd b/net-misc/dhcp/files/conf.dhcpd new file mode 100644 index 000000000000..34789b8db19e --- /dev/null +++ b/net-misc/dhcp/files/conf.dhcpd @@ -0,0 +1,3 @@ +#configure which interface or interfaces to for dhcp to listen on +#list all interfaces space separated. +IFACE="eth0" diff --git a/net-misc/dhcp/files/dhcp.rc7 b/net-misc/dhcp/files/dhcp.rc7 new file mode 100644 index 000000000000..3b48dad11ced --- /dev/null +++ b/net-misc/dhcp/files/dhcp.rc7 @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcp.rc7,v 1.1 2002/06/17 04:07:11 lostlogic Exp $ + +#configuration is done in /etc/conf.d/dhcp + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/dhcp/dhcpd.conf ] ; then + eerror "You need an /etc/dhcp/dhcpd.conf file to run dhcpd" + eerror "There is a sample conf file in /usr/share/doc/dhcp" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting dhcpd" + start-stop-daemon --start --quiet --exec /usr/sbin/dhcpd -- ${IFACE} + eend $? +} + +stop() { + ebegin "Stopping dhcpd" + start-stop-daemon --stop --quiet --exec /usr/sbin/dhcpd + eend $? +} |