Signed-off-by: Bruno Randolf <br1@einfach.org>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@38416
3c298f89-4303-0410-b956-
a3cf2f4a3e73
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))
--- /dev/null
+#!/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
+}
+