mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
cache-domains: Changed to hotplug script
Since we have to restart dnsmasq to reload the config anyway, this package doesn't need to run before anything. We do however need to wait for the network so I've changed this service to be a hotplug script and utility script. Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=cache-domains
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_VERSION:=2.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
|
||||
@@ -17,13 +17,16 @@ define Package/cache-domains/default
|
||||
endef
|
||||
|
||||
define Package/cache-domains/description/default
|
||||
Service to dynamically configure the local DNS (dnsmasq) to redirect game content servers to a LAN cache.
|
||||
hotplug script to dynamically configure the local DNS (dnsmasq) to redirect game content servers to a LAN cache.
|
||||
Definitive list dynamically obtained from https://github.com/uklans/cache-domains.
|
||||
endef
|
||||
|
||||
define Package/cache-domains/install/default
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/cache-domains.init $(1)/etc/init.d/cache-domains
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) ./files/cache-domains $(1)/usr/bin/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface/
|
||||
$(INSTALL_BIN) ./files/30-cache-domains $(1)/etc/hotplug.d/iface/
|
||||
endef
|
||||
|
||||
Build/Compile=# Nothing to compile, just install the scripts
|
||||
|
||||
Reference in New Issue
Block a user