git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
e5613b3
)
ddns-scripts: start via hotplug only if enabled
author
Christian Schoenebeck
<redacted>
Sun, 27 Jul 2014 14:06:24 +0000
(16:06 +0200)
committer
Christian Schoenebeck
<redacted>
Sun, 27 Jul 2014 14:06:24 +0000
(16:06 +0200)
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 <redacted>
net/ddns-scripts/files/etc/hotplug.d/iface/25-ddns
patch
|
blob
|
history
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 4495b5d85464d074005b918ee33757483aadcfd2..dab2385cbfee4e69b85e6661032d1ec0f2d2adc6 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT