0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-13 02:04:49 +00:00
Files
packages/utils/cache-domains/files/30-cache-domains
2022-03-08 21:55:31 -08:00

15 lines
302 B
Bash

#!/bin/sh
. /lib/functions/network.sh
network_find_wan WAN_IFACE
if [ "${ACTION}" = "ifup" ] && [ "${INTERFACE}" = "${WAN_IFACE}" ] && [ ! -e /var/cache-domains/lancache.conf ]; then
for ATTEMPT in $(seq 1 3); do
if /usr/bin/cache-domains configure; then
break
else
sleep 30
fi
done
fi