summaryrefslogtreecommitdiff
path: root/allstar/brb
diff options
context:
space:
mode:
authorJason D. McCormick <jason@mfamily.org>2020-04-14 21:06:28 -0400
committerJason D. McCormick <jason@mfamily.org>2020-04-14 21:06:28 -0400
commit1733e5fe839caff338a664a39208599afe8df42b (patch)
treec15a80d60a818cfe9a0fc8dc64ac092cc5511de3 /allstar/brb
parent820a97dcdd2a7c5bc6ae8bf5798578caa87ee77f (diff)
adding the big red button stuff
Diffstat (limited to 'allstar/brb')
-rwxr-xr-xallstar/brb21
1 files changed, 21 insertions, 0 deletions
diff --git a/allstar/brb b/allstar/brb
new file mode 100755
index 0000000..77c4577
--- /dev/null
+++ b/allstar/brb
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+
+ echo -e "Content-type: text/html\n\n"
+ echo "<html>"
+ echo "<head>"
+ echo "<title>Pressed the Big Red Button</title>"
+ echo "</head>"
+ echo "<body>"
+ echo -e "<center><h1>"
+
+if [ ! -f /var/lib/asterisk/brb/pressed ]; then
+ touch /var/lib/asterisk/brb/pressed
+ echo -e "CLICK"
+else
+ echo -e "PATIENCE GRASSHOPPER!"
+fi
+ echo -e "</center></h1>"
+ echo "</body>"
+ echo "</html>"
+exit 0;