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.

23 lines
510 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. if [ -z "${adb_hotplugif}" ] || [ "${INTERFACE}" = "${adb_hotplugif}" ]
  15. then
  16. /etc/init.d/adblock start
  17. f_log "adblock service started due to '${ACTION}' of '${INTERFACE}' interface"
  18. fi
  19. fi