summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-01-12 09:17:16 +0100
committerFlorian Eckert <fe@dev.tdt.de>2018-01-18 15:09:01 +0100
commit811685c269762780a1a88a15c7f0dd96e5727d9c (patch)
tree17da00fea4fbce1ee8bd8b9df71e799d063e6d8d /applications/luci-app-mwan3
parent08916f4335e96e4a3c9dcf77262fa151348ed93c (diff)
luci-app-mwan3: remove old /etc/hotplug.d/16-mwancustombak"
Remove old /etc/hotplug.d/15-mwancustombak file use instead /etc/mwan3.user from the mwan3 base package. The modification could be done undet "Networke | Load Balancer | Notify" Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3')
-rwxr-xr-xapplications/luci-app-mwan3/root/etc/hotplug.d/iface/16-mwancustombak38
1 files changed, 0 insertions, 38 deletions
diff --git a/applications/luci-app-mwan3/root/etc/hotplug.d/iface/16-mwancustombak b/applications/luci-app-mwan3/root/etc/hotplug.d/iface/16-mwancustombak
deleted file mode 100755
index 6e2875e3d..000000000
--- a/applications/luci-app-mwan3/root/etc/hotplug.d/iface/16-mwancustombak
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-# to enable this script uncomment the case loop at the bottom
-# to report mwan status on interface hotplug ifup/ifdown events modify the lines in the send_alert function
-
-send_alert()
-{
- # variable "$1" stores the MWAN status information
- # insert your code here to send the contents of "$1"
- echo "$1"
-}
-
-gather_event_info()
-{
- # create event information message
- local EVENT_INFO="Interface [ "$INTERFACE" ($DEVICE) ] on router [ "$(uci -p /var/state get system.@system[0].hostname)" ] has triggered a hotplug [ "$ACTION" ] event on "$(date +"%a %b %d %Y %T %Z")""
-
- # get current interface, policy and rule status
- local CURRENT_STATUS="$(/usr/sbin/mwan3 status)"
-
- # get last 50 MWAN systemlog messages
- local MWAN_LOG="$(echo -e "Last 50 MWAN systemlog entries. Newest entries sorted at the top:\n$(logread | grep mwan3 | tail -n 50 | sed 'x;1!H;$!d;x')")"
-
- # pass event info to send_alert function
- send_alert "$(echo -e "$EVENT_INFO\n\n$CURRENT_STATUS\n\n$MWAN_LOG")"
-}
-
-#case "$ACTION" in
-# ifup)
-# gather_event_info
-# ;;
-#
-# ifdown)
-# gather_event_info
-# ;;
-#esac
-
-exit 0