You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
288 B

  1. #!/bin/sh
  2. . /lib/functions/network.sh
  3. network_find_wan WAN_IFACE
  4. if [ "${ACTION}" = "ifup" ] && [ "${INTERFACE}" = "${WAN_IFACE}" ] && [ ! -d /var/cache-domains ]; then
  5. for ATTEMPT in $(seq 1 3); do
  6. if /usr/bin/cache-domains configure; then
  7. break
  8. else
  9. sleep 30
  10. fi
  11. done
  12. fi