diff options
author | Donny Davies <woodchip@gentoo.org> | 2001-09-09 09:09:08 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2001-09-09 09:09:08 +0000 |
commit | ffe41b0ae02115053d1f0eafce77ff2cd3e4194b (patch) | |
tree | 41e92ee1aa79a9b609dd69627ef4c1133727751c /net-misc/dhcp/files | |
parent | dhcp rc5/rc6 support (diff) | |
download | gentoo-2-ffe41b0ae02115053d1f0eafce77ff2cd3e4194b.tar.gz gentoo-2-ffe41b0ae02115053d1f0eafce77ff2cd3e4194b.tar.bz2 gentoo-2-ffe41b0ae02115053d1f0eafce77ff2cd3e4194b.zip |
updated to newest available version, which is 3.0_rc12 as of now. also made the package support rc5 and rc6 systems. :)
Diffstat (limited to 'net-misc/dhcp/files')
-rw-r--r--[-rwxr-xr-x] | net-misc/dhcp/files/dhcp.rc5 (renamed from net-misc/dhcp/files/dhcp) | 0 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcp.rc6 | 26 | ||||
-rw-r--r-- | net-misc/dhcp/files/digest-dhcp-3.0_beta0224 | 1 | ||||
-rw-r--r-- | net-misc/dhcp/files/digest-dhcp-3.0_rc10 | 1 | ||||
-rw-r--r-- | net-misc/dhcp/files/digest-dhcp-3.0_rc1000 | 1 | ||||
-rw-r--r-- | net-misc/dhcp/files/digest-dhcp-3.0_rc12 | 1 | ||||
-rw-r--r-- | net-misc/dhcp/files/digest-dhcp-3.0_rc12-r6 | 1 |
7 files changed, 28 insertions, 3 deletions
diff --git a/net-misc/dhcp/files/dhcp b/net-misc/dhcp/files/dhcp.rc5 index b23298be6cb2..b23298be6cb2 100755..100644 --- a/net-misc/dhcp/files/dhcp +++ b/net-misc/dhcp/files/dhcp.rc5 diff --git a/net-misc/dhcp/files/dhcp.rc6 b/net-misc/dhcp/files/dhcp.rc6 new file mode 100644 index 000000000000..6ca4fc057f3a --- /dev/null +++ b/net-misc/dhcp/files/dhcp.rc6 @@ -0,0 +1,26 @@ +#!/sbin/runscript + +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 -- eth0 + eend $? +} + +stop() { + ebegin "Stopping dhcpd" + start-stop-daemon --stop --quiet --exec /usr/sbin/dhcpd + eend $? +} diff --git a/net-misc/dhcp/files/digest-dhcp-3.0_beta0224 b/net-misc/dhcp/files/digest-dhcp-3.0_beta0224 deleted file mode 100644 index 0933c3a6c4b2..000000000000 --- a/net-misc/dhcp/files/digest-dhcp-3.0_beta0224 +++ /dev/null @@ -1 +0,0 @@ -MD5 ea48b791cb2be15c6d3458f5f55de8ca dhcp-3.0b2pl24.tar.gz diff --git a/net-misc/dhcp/files/digest-dhcp-3.0_rc10 b/net-misc/dhcp/files/digest-dhcp-3.0_rc10 deleted file mode 100644 index f6c0f566ff30..000000000000 --- a/net-misc/dhcp/files/digest-dhcp-3.0_rc10 +++ /dev/null @@ -1 +0,0 @@ -MD5 a5b043e0cb80d3ccadc54f07cb95dd5f dhcp-3.0rc10.tar.gz diff --git a/net-misc/dhcp/files/digest-dhcp-3.0_rc1000 b/net-misc/dhcp/files/digest-dhcp-3.0_rc1000 deleted file mode 100644 index f6c0f566ff30..000000000000 --- a/net-misc/dhcp/files/digest-dhcp-3.0_rc1000 +++ /dev/null @@ -1 +0,0 @@ -MD5 a5b043e0cb80d3ccadc54f07cb95dd5f dhcp-3.0rc10.tar.gz diff --git a/net-misc/dhcp/files/digest-dhcp-3.0_rc12 b/net-misc/dhcp/files/digest-dhcp-3.0_rc12 new file mode 100644 index 000000000000..b92bbe627cdc --- /dev/null +++ b/net-misc/dhcp/files/digest-dhcp-3.0_rc12 @@ -0,0 +1 @@ +MD5 7aa34ef3cd4a24f0c6857283d5261003 dhcp-3.0rc12.tar.gz diff --git a/net-misc/dhcp/files/digest-dhcp-3.0_rc12-r6 b/net-misc/dhcp/files/digest-dhcp-3.0_rc12-r6 new file mode 100644 index 000000000000..b92bbe627cdc --- /dev/null +++ b/net-misc/dhcp/files/digest-dhcp-3.0_rc12-r6 @@ -0,0 +1 @@ +MD5 7aa34ef3cd4a24f0c6857283d5261003 dhcp-3.0rc12.tar.gz |