packages/net/mwan3/files/etc/mwan3.user
James White 8608afa75f
mwan3: Update documentation information for mwan3.user file
Signed-off-by: James White <james@jmwhite.co.uk>
2020-11-16 10:42:45 +00:00

20 lines
961 B
Bash

#!/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.
#
# There are three main environment variables that are passed to this script.
#
# $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.
# $INTERFACE Name of the interface an action relates to (e.g. "wan" or "wwan").
# $DEVICE Physical device name of the interface the action relates to (e.g. "eth0" or "wwan0").
# Note: On an ifdown event, $DEVICE is not available, use $INTERFACE instead.
#
# Further documentation can be found here:
# https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3#alertsnotifications