ddns-scripts: update init installation
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 16 Sep 2020 14:18:50 +0000 (16:18 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 21 Sep 2020 08:17:01 +0000 (10:17 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/ddns-scripts/Makefile
net/ddns-scripts/files/ddns.init [deleted file]
net/ddns-scripts/files/etc/init.d/ddns [new file with mode: 0644]

index 6524518aa026efa6ec058201a233145fc065abb5..92b80db6a5591b40705893d9ce2874ba3b9e2b8b 100755 (executable)
@@ -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 (executable)
index b2156a6..0000000
+++ /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 (file)
index 0000000..b2156a6
--- /dev/null
@@ -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
+}