From: Florian Eckert Date: Wed, 16 Sep 2020 14:18:50 +0000 (+0200) Subject: ddns-scripts: update init installation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=88f6bc8d7bc5615a41804ff23f6a01981b8a584e;p=feed%2Fpackages.git ddns-scripts: update init installation Signed-off-by: Florian Eckert --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index 6524518aa0..92b80db6a5 100755 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -169,7 +169,7 @@ define Package/ddns-scripts/install $(1)/etc/hotplug.d/iface/95-ddns $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) ./files/ddns.init \ + $(INSTALL_BIN) ./files/etc/init.d/ddns \ $(1)/etc/init.d/ddns $(INSTALL_DIR) $(1)/etc/config diff --git a/net/ddns-scripts/files/ddns.init b/net/ddns-scripts/files/ddns.init deleted file mode 100755 index b2156a6a63..0000000000 --- a/net/ddns-scripts/files/ddns.init +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh /etc/rc.common -START=95 -STOP=10 - -boot() { - return 0 -} - -reload() { - /usr/lib/ddns/dynamic_dns_updater.sh -- reload - return 0 -} - -restart() { - /usr/lib/ddns/dynamic_dns_updater.sh -- stop - sleep 1 # give time to shutdown - /usr/lib/ddns/dynamic_dns_updater.sh -- start -} - -start() { - /usr/lib/ddns/dynamic_dns_updater.sh -- start -} - -stop() { - /usr/lib/ddns/dynamic_dns_updater.sh -- stop - return 0 -} diff --git a/net/ddns-scripts/files/etc/init.d/ddns b/net/ddns-scripts/files/etc/init.d/ddns new file mode 100644 index 0000000000..b2156a6a63 --- /dev/null +++ b/net/ddns-scripts/files/etc/init.d/ddns @@ -0,0 +1,27 @@ +#!/bin/sh /etc/rc.common +START=95 +STOP=10 + +boot() { + return 0 +} + +reload() { + /usr/lib/ddns/dynamic_dns_updater.sh -- reload + return 0 +} + +restart() { + /usr/lib/ddns/dynamic_dns_updater.sh -- stop + sleep 1 # give time to shutdown + /usr/lib/ddns/dynamic_dns_updater.sh -- start +} + +start() { + /usr/lib/ddns/dynamic_dns_updater.sh -- start +} + +stop() { + /usr/lib/ddns/dynamic_dns_updater.sh -- stop + return 0 +}