From 44836ccf04b098d44b3e3f3a5f9b51b6bf1824fd Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 12 Jun 2019 20:34:20 +0200 Subject: mode-button-scheduler: beep for confirmation But be silent if silent-boot is enabled. --- mode-button-scheduler | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'mode-button-scheduler') 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; -- cgit v1.2.3-70-g09d2