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>
8 lines
215 B
Bash
8 lines
215 B
Bash
#!/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
|