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
961 B

  1. #!/bin/sh
  2. #
  3. # This file is interpreted as shell script.
  4. # Put your custom mwan3 action here, they will
  5. # be executed with each netifd hotplug interface event
  6. # on interfaces for which mwan3 is enabled.
  7. #
  8. # There are three main environment variables that are passed to this script.
  9. #
  10. # $ACTION
  11. # <ifup> Is called by netifd and mwan3track.
  12. # <ifdown> Is called by netifd and mwan3track.
  13. # <connected> Is only called by mwan3track if tracking was successful.
  14. # <disconnected> Is only called by mwan3track if tracking has failed.
  15. # $INTERFACE Name of the interface an action relates to (e.g. "wan" or "wwan").
  16. # $DEVICE Physical device name of the interface the action relates to (e.g. "eth0" or "wwan0").
  17. # Note: On an ifdown event, $DEVICE is not available, use $INTERFACE instead.
  18. #
  19. # Further documentation can be found here:
  20. # https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3#alertsnotifications