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 | 46bb143b76573ce30cef0cff61f17f5a60232f7d (patch) | |
tree | 1e2809b0dbeac04781cd725fd6ff270d935a397f /net-misc/dhcp | |
parent | Fix configuration, see changelog (diff) | |
download | historical-46bb143b76573ce30cef0cff61f17f5a60232f7d.tar.gz historical-46bb143b76573ce30cef0cff61f17f5a60232f7d.tar.bz2 historical-46bb143b76573ce30cef0cff61f17f5a60232f7d.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 $? +} |