From: Jo-Philipp Wich Date: Tue, 15 Oct 2013 13:37:34 +0000 (+0000) Subject: ddns-scripts: add init script X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5bc03df2a3d79ce876edad132f32d08487638291;p=openwrt%2Fsvn-archive%2Fpackages.git ddns-scripts: add init script Signed-off-by: Bruno Randolf SVN-Revision: 38416 --- 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 +} +