aboutsummaryrefslogtreecommitdiffstats
path: root/global-config
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-11-13 10:17:56 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-11-13 10:20:14 +0100
commite17389749f5cd880e1fae59a77f118823b88fdf5 (patch)
treed25761218146177c98c886385f54fe2b40ff003c /global-config
parentec2f976be06248aea4114572b45b29d5348b56a3 (diff)
global-config: add more examples for mode button and sms-action
Diffstat (limited to 'global-config')
-rw-r--r--global-config8
1 files 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...
};