From 5bc03df2a3d79ce876edad132f32d08487638291 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 15 Oct 2013 13:37:34 +0000 Subject: [PATCH] ddns-scripts: add init script Signed-off-by: Bruno Randolf SVN-Revision: 38416 --- net/ddns-scripts/Makefile | 2 ++ net/ddns-scripts/files/etc/init.d/ddns | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 net/ddns-scripts/files/etc/init.d/ddns diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index 651c62359..0e9f0f3dc 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -37,6 +37,8 @@ endef define Package/ddns-scripts/install $(INSTALL_DIR) $(1) $(CP) ./files/* $(1)/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/etc/init.d/ddns $(1)/etc/init.d/ endef $(eval $(call BuildPackage,ddns-scripts)) 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 000000000..3171d5ae9 --- /dev/null +++ b/net/ddns-scripts/files/etc/init.d/ddns @@ -0,0 +1,12 @@ +#!/bin/sh /etc/rc.common +START=95 + +start() { + . /usr/lib/ddns/dynamic_dns_functions.sh + start_daemon_for_all_ddns_sections +} + +stop() { + killall -9 dynamic_dns_updater.sh +} + -- 2.30.2