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:
Gerard Ryan
2019-11-19 22:39:51 +10:00
parent 54266c99b2
commit 124deec9ae
4 changed files with 36 additions and 15 deletions
@@ -0,0 +1,8 @@
#!/bin/sh
source /lib/functions/network.sh
network_find_wan WAN_IFACE
if [ "${ACTION}" == "ifup" ] && [ "${INTERFACE}" == "${WAN_IFACE}" ] && [ ! -d /var/cache-domains ]; then
/usr/bin/cache-domains configure
fi