mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix
This commit is contained in:
parent
9c8491fb79
commit
ebec0f0e5c
1 changed files with 2 additions and 2 deletions
|
@ -153,8 +153,6 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
[ "$multipath_status" = "off" ] || {
|
[ "$multipath_status" = "off" ] || {
|
||||||
mail_alert="$(uci -q get omr-tracker.$OMR_TRACKER_INTERFACE.mail_alert)"
|
|
||||||
[ -z "$mail_alert" ] && mail_alert="$(uci -q get omr-tracker.defaults.mail_alert)"
|
|
||||||
if [ "$OMR_TRACKER_STATUS_MSG" = "" ]; then
|
if [ "$OMR_TRACKER_STATUS_MSG" = "" ]; then
|
||||||
_log "$OMR_TRACKER_DEVICE switched off"
|
_log "$OMR_TRACKER_DEVICE switched off"
|
||||||
else
|
else
|
||||||
|
@ -177,6 +175,8 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
|
||||||
config_foreach set_route interface $OMR_TRACKER_INTERFACE
|
config_foreach set_route interface $OMR_TRACKER_INTERFACE
|
||||||
fi
|
fi
|
||||||
[ "$multipath_status" = "off" ] || {
|
[ "$multipath_status" = "off" ] || {
|
||||||
|
mail_alert="$(uci -q get omr-tracker.$OMR_TRACKER_INTERFACE.mail_alert)"
|
||||||
|
[ -z "$mail_alert" ] && mail_alert="$(uci -q get omr-tracker.defaults.mail_alert)"
|
||||||
if [ "$OMR_TRACKER_STATUS_MSG" = "" ]; then
|
if [ "$OMR_TRACKER_STATUS_MSG" = "" ]; then
|
||||||
[ "$mail_alert" = "1" ] && echo -e "Subject: OpenMPTCProuter: $OMR_TRACKER_INTERFACE ($OMR_TRACKER_DEVICE) is down\n\nOpenMPTCProuter detected a connection failure of $OMR_TRACKER_INTERFACE ($OMR_TRACKER_DEVICE)." | sendmail $(uci -q get mail.default.to)
|
[ "$mail_alert" = "1" ] && echo -e "Subject: OpenMPTCProuter: $OMR_TRACKER_INTERFACE ($OMR_TRACKER_DEVICE) is down\n\nOpenMPTCProuter detected a connection failure of $OMR_TRACKER_INTERFACE ($OMR_TRACKER_DEVICE)." | sendmail $(uci -q get mail.default.to)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue