Add openwrt init script and uci config section

This commit is contained in:
2022-05-15 19:43:33 +02:00
parent e46d38e3df
commit 72ff915b46
3 changed files with 39 additions and 0 deletions
+6
View File
@@ -38,6 +38,12 @@ define Package/coredns/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/coredns $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/coredns.init $(1)/etc/init.d/coredns
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/coredns.config $(1)/etc/config/coredns
$(INSTALL_DIR) $(1)/etc/coredns
$(INSTALL_CONF) ./files/Corefile $(1)/etc/coredns/Corefile
endef