mode-button-scheduler: beep for confirmation

But be silent if silent-boot is enabled.
This commit is contained in:
Christian Hesse 2019-06-12 20:34:20 +02:00
parent fd2901cd45
commit 44836ccf04

View file

@ -14,5 +14,14 @@
/ system scheduler remove mode-button-scheduler;
:log info ("Acting on " . $Count . " mode-button presses: " . $Code);
:delay 1s;
:if ([ / system routerboard settings get silent-boot ] = false) do={
:for I from=1 to=$Count do={
:beep length=200ms;
:delay 200ms;
}
} else={
:delay 1s;
}
$Parsed;