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.

20 lines
410 B

  1. #!/bin/sh
  2. #
  3. adb_pid="${$}"
  4. adb_helper="/usr/bin/adblock-helper.sh"
  5. adb_pidfile="/var/run/adblock.pid"
  6. if [ -f "${adb_pidfile}" ] || [ "${ACTION}" != "ifup" ]
  7. then
  8. exit 0
  9. fi
  10. . "${adb_helper}"
  11. f_envload
  12. if [ "${INTERFACE}" = "${adb_wanif4}" ] || [ "${INTERFACE}" = "${adb_wanif6}" ]
  13. then
  14. /etc/init.d/adblock start
  15. f_log "adblock service started due to '${ACTION}' of '${INTERFACE}' interface"
  16. fi