diff options
| author | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2014-09-16 05:23:55 +0200 |
|---|---|---|
| committer | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2014-09-16 05:23:55 +0200 |
| commit | a0f29822e0e12031fd53255de01c17fb170a4923 (patch) | |
| tree | c656b7cbdc8feca1ad9c66982a4c0792377e3a15 | |
| parent | 2472014a7d08e360036088876c0cce7fec56582c (diff) | |
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
| -rw-r--r-- | net/ddns-scripts/files/etc/hotplug.d/iface/25-ddns | 6 |
1 files changed, 2 insertions, 4 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..f337a674e 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,7 @@ #!/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 - |
