summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/kea')
-rw-r--r--net-misc/kea/files/kea-initd-r120
-rw-r--r--net-misc/kea/kea-1.8.1-r1.ebuild (renamed from net-misc/kea/kea-1.8.1.ebuild)0
2 files changed, 15 insertions, 5 deletions
diff --git a/net-misc/kea/files/kea-initd-r1 b/net-misc/kea/files/kea-initd-r1
index 57711b3c9d36..00c493f14be1 100644
--- a/net-misc/kea/files/kea-initd-r1
+++ b/net-misc/kea/files/kea-initd-r1
@@ -19,24 +19,34 @@ depend() {
}
start_pre() {
- if [ ! -f "${config_file}" ] ; then
- eerror "Please create a ${config_file} config file."
- return 1
- fi
-
if ${DHCP4:-false} ; then
+ if [ ! -f "${dhcp4_config}" ] ; then
+ eerror "Please create a ${dhcp4_config} config file."
+ return 1
+ fi
+
if ! ${dhcp4_command} -t ${dhcp4_config} 1>/dev/null 2>/dev/null ; then
eerror "Error in config file ${dhcp4_config}"
return 1
fi
fi
if ${DHCP6:-false} ; then
+ if [ ! -f "${dhcp6_config}" ] ; then
+ eerror "Please create a ${dhcp6_file} config file."
+ return 1
+ fi
+
if ! ${dhcp6_command} -t ${dhcp6_config} 1>/dev/null 2>/dev/null ; then
eerror "Error in config file ${dhcp6_config}"
return 1
fi
fi
if ${DDNS:-false} ; then
+ if [ ! -f "${ddns_config}" ] ; then
+ eerror "Please create a ${ddns_config} config file."
+ return 1
+ fi
+
if ! ${ddns_command} -t ${ddns_config} 1>/dev/null 2>/dev/null ; then
eerror "Error in config file ${ddns_config}"
return 1
diff --git a/net-misc/kea/kea-1.8.1.ebuild b/net-misc/kea/kea-1.8.1-r1.ebuild
index 3e20776fe7e7..3e20776fe7e7 100644
--- a/net-misc/kea/kea-1.8.1.ebuild
+++ b/net-misc/kea/kea-1.8.1-r1.ebuild