summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-17 03:58:24 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-17 03:58:24 +0000
commitf4211eb0d96fee9aea07b5e3f99b53e757dd8aca (patch)
tree1d19809ad8125f7cf23ac8f9ca2635ca51dc46e4 /net-misc/udhcp/files
parentfix autotool junk #66770 (Manifest recommit) (diff)
downloadgentoo-2-f4211eb0d96fee9aea07b5e3f99b53e757dd8aca.tar.gz
gentoo-2-f4211eb0d96fee9aea07b5e3f99b53e757dd8aca.tar.bz2
gentoo-2-f4211eb0d96fee9aea07b5e3f99b53e757dd8aca.zip
old
Diffstat (limited to 'net-misc/udhcp/files')
-rw-r--r--net-misc/udhcp/files/digest-udhcp-0.9.8-r21
-rw-r--r--net-misc/udhcp/files/udhcp.init41
2 files changed, 0 insertions, 42 deletions
diff --git a/net-misc/udhcp/files/digest-udhcp-0.9.8-r2 b/net-misc/udhcp/files/digest-udhcp-0.9.8-r2
deleted file mode 100644
index 0407c3fff96e..000000000000
--- a/net-misc/udhcp/files/digest-udhcp-0.9.8-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 2d7e548820d2ded5e183933cb701defb udhcp-0.9.8.tar.gz 43889
diff --git a/net-misc/udhcp/files/udhcp.init b/net-misc/udhcp/files/udhcp.init
deleted file mode 100644
index d9ea123a5817..000000000000
--- a/net-misc/udhcp/files/udhcp.init
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/udhcp/files/udhcp.init,v 1.3 2004/07/15 00:14:59 agriffis Exp $
-
-depend() {
- need net
- use logger dns
-}
-
-checkconfig() {
- if [ ! -f "${CHROOT}/etc/udhcpd.conf" ] ; then
- eerror "No ${CHROOT}/etc/udhcpd.conf file exists!"
- return 1
- fi
-
- if [ ! -f "${CHROOT}/var/lib/misc/udhcpd.leases" ] ; then
- ebegin "Creating dhcpd.leases"
- touch "${CHROOT}/var/lib/misc/udhcpd.leases" || return 1
- eend $?
- fi
-
- ebegin "Setting ownership on dhcpd.leases"
- chown dhcp:dhcp "${CHROOT}/var/lib/misc/udhcpd.leases" || return 1
- eend $?
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting ${CHROOT:+chrooted }dhcpd"
- start-stop-daemon --start --quiet --exec /usr/sbin/udhcpd \
- ${CHROOT:+-chroot ${CHROOT}} ${IFACE}
- eend $?
-}
-
-stop() {
- ebegin "Stopping dhcpd"
- start-stop-daemon --stop --quiet --exec /usr/sbin/udhcpd
- eend $?
-}