mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
mode-button-scheduler: beep for confirmation
But be silent if silent-boot is enabled.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user