aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mode-button-scheduler11
1 files changed, 10 insertions, 1 deletions
diff --git a/mode-button-scheduler b/mode-button-scheduler
index bce6089..dfd89da 100644
--- a/mode-button-scheduler
+++ b/mode-button-scheduler
@@ -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;