aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk.local
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-03-05 08:26:05 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-03-05 08:26:05 +0100
commit3127800496410a9f316e22c57485e83a6c2fe193 (patch)
treedd0604fbe107d9d2a46cf7a99d5c98429e1c28c4 /daily-psk.local
parent1dbd91f76d4f5aac19fa8802f38a3d41ae0bec14 (diff)
daily-psk: use $LogPrintExit
Diffstat (limited to 'daily-psk.local')
-rw-r--r--daily-psk.local7
1 files changed, 4 insertions, 3 deletions
diff --git a/daily-psk.local b/daily-psk.local
index 9950db8..3915618 100644
--- a/daily-psk.local
+++ b/daily-psk.local
@@ -7,9 +7,10 @@
#
# !! Do not edit this file, it is generated from template!
-:global Identity;
:global DailyPskMatchComment;
+:global Identity;
+:global LogPrintExit;
:global SendNotification;
:global UrlEncode;
:global WaitForFile;
@@ -56,13 +57,13 @@
:local Skip 0;
:if ($NewPsk != $OldPsk) do={
- :log info ("Updating daily PSK for " . $Ssid . " to " . $NewPsk . " (was " . $OldPsk . ")");
+ $LogPrintExit info ("Updating daily PSK for " . $Ssid . " to " . $NewPsk . " (was " . $OldPsk . ")") false;
/ interface wireless access-list set $AccList private-pre-shared-key=$NewPsk;
:if ([ / interface wireless print count-only where name=$IntName disabled=no ] = 1) do={
:foreach SeenSsid in=$Seen do={
:if ($SeenSsid = $Ssid) do={
- :log debug ("Already sent a mail for SSID " . $Ssid . ", skipping.");
+ $LogPrintExit debug ("Already sent a mail for SSID " . $Ssid . ", skipping.") false;
:set Skip 1;
}
}