2017-03-15 15:11:07 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# This file is interpreted as shell script.
|
|
|
|
# Put your custom mwan3 action here, they will
|
|
|
|
# be executed with each netifd hotplug interface event
|
|
|
|
# on interfaces for which mwan3 is enabled.
|
|
|
|
#
|
2017-03-21 07:31:03 +00:00
|
|
|
# There are three main environment variables that are passed to this script.
|
|
|
|
#
|
2018-03-16 13:36:24 +00:00
|
|
|
# $ACTION
|
|
|
|
# <ifup> Is called by netifd and mwan3track
|
|
|
|
# <ifdown> Is called by netifd and mwan3track
|
|
|
|
# <connected> Is only called by mwan3track if tracking was successful
|
|
|
|
# <disconnected> Is only called by mwan3track if tracking has failed
|
2017-03-21 07:31:03 +00:00
|
|
|
# $INTERFACE Name of the interface which went up or down (e.g. "wan" or "wwan")
|
|
|
|
# $DEVICE Physical device name which interface went up or down (e.g. "eth0" or "wwan0")
|