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>
This commit is contained in:
parent
e5613b306f
commit
f1faf5f2e1
1 changed files with 2 additions and 3 deletions
|
@ -1,9 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
. /usr/lib/ddns/dynamic_dns_functions.sh
|
|
||||||
|
|
||||||
if [ "$ACTION" = "ifup" ]; then
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue