From 443d58621f2806a63c13e41cc1485861a81e93e0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 21 Dec 2024 10:33:11 -0600 Subject: [PATCH] Update defaults.inc --- defaults.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index ec84ac0f..a18ff3cd 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='2.8.16-12192024' +VERS='2.8.17a-12212024' noheader=' update service dailytemp confsync -r -report test ' @@ -30,6 +30,7 @@ PW_LOGPOWER=${PW_LOGFOLDER}/log-power M_SRVCOPT=(start stop restart reload enable disable) source ${PW_FOLDER}/conf/settings.conf +[ -f ${NM_FOLDER}/conf/defaults.local.inc ] && source ${NM_FOLDER}/defaults.inc IP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) @@ -106,7 +107,9 @@ SENDNOTICE(){ ${SN_MSG} -$(date)" "${SN_TIT}" ${3} ${4} & +$(date)" "${SN_TIT} +${NM_HOSTNAMES[${IP}]} +" ${3} ${4} & else PUSH_TO_MOBILE "${SN_MSG}