mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 18:48:37 +02:00
mode-button-scheduler: beep for confirmation
But be silent if silent-boot is enabled.
This commit is contained in:
parent
fd2901cd45
commit
44836ccf04
1 changed files with 10 additions and 1 deletions
|
@ -14,5 +14,14 @@
|
||||||
/ system scheduler remove mode-button-scheduler;
|
/ system scheduler remove mode-button-scheduler;
|
||||||
|
|
||||||
:log info ("Acting on " . $Count . " mode-button presses: " . $Code);
|
:log info ("Acting on " . $Count . " mode-button presses: " . $Code);
|
||||||
|
|
||||||
|
:if ([ / system routerboard settings get silent-boot ] = false) do={
|
||||||
|
:for I from=1 to=$Count do={
|
||||||
|
:beep length=200ms;
|
||||||
|
:delay 200ms;
|
||||||
|
}
|
||||||
|
} else={
|
||||||
:delay 1s;
|
:delay 1s;
|
||||||
|
}
|
||||||
|
|
||||||
$Parsed;
|
$Parsed;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue