From e17389749f5cd880e1fae59a77f118823b88fdf5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 13 Nov 2018 10:17:56 +0100 Subject: global-config: add more examples for mode button and sms-action --- global-config | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/global-config b/global-config index e6bd20d..0382237 100644 --- a/global-config +++ b/global-config @@ -66,9 +66,10 @@ # Run different commands with multiple mode-button presses. :global "mode-button" { 1="/ system script run leds-toggle-mode;"; - 2="/ system shutdown;"; - 3="/ system reboot;"; - 4="/ system script run bridge-port-toggle;"; + 2=":global SendNotification; :global identity; \$SendNotification \"Hello...\" (\"Hello world, \" . \$identity . \" calling!\");"; + 3="/ system shutdown;"; + 4="/ system reboot;"; + 5="/ system script run bridge-port-toggle;"; # add more here... }; @@ -76,6 +77,7 @@ :global "sms-action" { shutdown="/ system shutdown;"; reboot="/ system reboot;"; + bridge-port-toggle="/ system script run bridge-port-toggle;"; # add more here... }; -- cgit v1.2.3-54-g00ecf