diff options
author | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2014-07-27 16:06:24 +0200 |
---|---|---|
committer | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2014-07-27 16:06:24 +0200 |
commit | f1faf5f2e1261809ffb58743b9ac67434b450797 (patch) | |
tree | 84927b12d1653709d7b84d9b6ac63b983ce2536a | |
parent | e5613b306f890da5ca2e6401bc587d67815dfc93 (diff) |
ddns-scripts: start via hotplug only if enabled
To be consistent with other services only start via hotplug if enabled.
Now full functionality of /etc/init.d/ddns enable/disable start/stop
Optimization: Include script only if needed
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
-rw-r--r-- | net/ddns-scripts/files/etc/hotplug.d/iface/25-ddns | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ddns-scripts/files/etc/hotplug.d/iface/25-ddns b/net/ddns-scripts/files/etc/hotplug.d/iface/25-ddns index 4495b5d85..dab2385cb 100644 --- a/net/ddns-scripts/files/etc/hotplug.d/iface/25-ddns +++ b/net/ddns-scripts/files/etc/hotplug.d/iface/25-ddns @@ -1,9 +1,8 @@ #!/bin/sh -. /usr/lib/ddns/dynamic_dns_functions.sh - if [ "$ACTION" = "ifup" ]; then - start_daemon_for_all_ddns_sections "$INTERFACE" + . /usr/lib/ddns/dynamic_dns_functions.sh + /etc/init.d/ddns enabled && start_daemon_for_all_ddns_sections "$INTERFACE" fi |