summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-scripts/net.modules.d/helpers.d/dhcp-state')
-rw-r--r--net-scripts/net.modules.d/helpers.d/dhcp-state4
1 files changed, 1 insertions, 3 deletions
diff --git a/net-scripts/net.modules.d/helpers.d/dhcp-state b/net-scripts/net.modules.d/helpers.d/dhcp-state
index 60c5739..244fbb0 100644
--- a/net-scripts/net.modules.d/helpers.d/dhcp-state
+++ b/net-scripts/net.modules.d/helpers.d/dhcp-state
@@ -12,9 +12,7 @@ conf=$(add_suffix "/etc/conf.d/net")
service="net.${interface}"
if [[ ${action} != "up" ]]; then
- if service_starting "${service}" || service_started "${service}" ; then
- mark_service_inactive "${service}"
- fi
+ service_started "${service}" && mark_service_inactive "${service}"
remove_state "${interface}" false
else
! service_stopping "${service}" && mark_service_started "${service}"