mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00: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;
|
||||
|
||||
: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;
|
||||
|
|
Loading…
Reference in a new issue