summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMomo <momorientes@online.de>2011-09-04 20:30:12 +0200
committerMomo <momorientes@online.de>2011-09-04 20:30:12 +0200
commit761db6a8b30f254b5349395c939111dedd8cf16b (patch)
treee7a9cfca4f9225c67795d3da1c0ccd745e3578f5
parent34b55bc3cf29cdfbaa40c494e3d2011855f15cc8 (diff)
adding documentation
-rwxr-xr-xgod/licht14
1 files changed, 14 insertions, 0 deletions
diff --git a/god/licht b/god/licht
index f9fc8f69..cbff9ad0 100755
--- a/god/licht
+++ b/god/licht
@@ -1,4 +1,18 @@
#!/bin/bash
+#
+#SYNOPSIS
+# //god/licht [options] [0/1]
+#OPTIONS
+# all - toggles all lights
+# links - toggles all lights on the left hand side while looking towards the Auditorium
+# rechts - toggles all lights on the right hand side while looking towards the Auditorium
+# kuschel - toggles the lights in the pwnie corner
+# software - toggles the software corner
+# tische - toggles the lights on the window side of the long table
+# porsche - toggles the lights on the window side where the porsche cockpit is
+# ghetto - toggles the lights in the hallway
+# 0-7 - toggles individual lights
+
toggle() {
LAMPE=`echo "$1" | sed -n '/^[1-2]*[0-9]*[0-9]$/p' | xargs echo "obase=16;" | bc`
TOGGLE=`echo "$2" | sed -n '/^[0-1]/p'`