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:
@@ -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
|
||||
Reference in New Issue
Block a user