mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user