mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user