aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk.wifi.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 12:45:38 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 20:37:57 +0100
commit4ab8dbd774f6d024db493359a7cb345f3bd76c8b (patch)
tree8aa8d8721a6a9e113e2feafe633ece852895e498 /daily-psk.wifi.rsc
parent5016f4d28ccef4d3b0b1ab55cacb8cf3ee9d0cea (diff)
daily-psk: switch to $LogPrint
Diffstat (limited to 'daily-psk.wifi.rsc')
-rw-r--r--daily-psk.wifi.rsc6
1 files changed, 3 insertions, 3 deletions
diff --git a/daily-psk.wifi.rsc b/daily-psk.wifi.rsc
index e9b5199..ee3e1b0 100644
--- a/daily-psk.wifi.rsc
+++ b/daily-psk.wifi.rsc
@@ -22,7 +22,7 @@
:global Identity;
:global FormatLine;
- :global LogPrintExit2;
+ :global LogPrint;
:global ScriptLock;
:global SendNotification2;
:global SymbolForNotification;
@@ -68,12 +68,12 @@
:local Skip 0;
:if ($NewPsk != $OldPsk) do={
- $LogPrintExit2 info $ScriptName ("Updating daily PSK for " . $Ssid . " to " . $NewPsk . " (was " . $OldPsk . ")") false;
+ $LogPrint info $ScriptName ("Updating daily PSK for " . $Ssid . " to " . $NewPsk . " (was " . $OldPsk . ")");
/interface/wifi/access-list/set $AccList passphrase=$NewPsk;
:if ([ :len [ /interface/wifi/actual-configuration/find where configuration.ssid=$Ssid ] ] > 0) do={
:if ($Seen->$Ssid = 1) do={
- $LogPrintExit2 debug $ScriptName ("Already sent a mail for SSID " . $Ssid . ", skipping.") false;
+ $LogPrint debug $ScriptName ("Already sent a mail for SSID " . $Ssid . ", skipping.");
} else={
:local Link ($DailyPskQrCodeUrl . \
"?scale=8&level=1&ssid=" . [ $UrlEncode $Ssid ] . "&pass=" . [ $UrlEncode $NewPsk ]);