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.

6 lines
237 B

  1. #!/bin/sh
  2. if [ "$ACTION" = 'ifup' ] && [ "$INTERFACE" = 'wan' ] && /etc/init.d/https-dns-proxy enabled; then
  3. logger -t "https-dns-proxy" "Restarting https-dns-proxy due to $ACTION of $INTERFACE"
  4. /etc/init.d/https-dns-proxy restart
  5. fi