summaryrefslogtreecommitdiffstats
path: root/god
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-09-23 17:42:14 +0200
committermakefu <github@syntax-fehler.de>2011-09-23 17:42:14 +0200
commitf97bb70e6f3372c6bbbc70a057cc6880f1044c9a (patch)
treeff4109a802338dd97712938740e86e68852328b0 /god
parent41c07676d37dff4a46ca5e18aaa05fbe970acb63 (diff)
parent77ba054b1e3a55a54f4643bc544e7c3550006a00 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'god')
-rwxr-xr-xgod/licht12
1 files changed, 3 insertions, 9 deletions
diff --git a/god/licht b/god/licht
index cbff9ad0..cd67d338 100755
--- a/god/licht
+++ b/god/licht
@@ -13,9 +13,11 @@
# ghetto - toggles the lights in the hallway
# 0-7 - toggles individual lights
+TOGGLE=`echo "$2" | sed -n '/^[0-1]/p'`
+
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'`
+ #TOGGLE=`echo "$2" | sed -n '/^[0-1]/p'`
if ! [ "$LAMPE" -a "$TOGGLE" ];then
echo "you are made of stupid"
exit 1
@@ -76,38 +78,30 @@ case "$1" in
echo "Usage: lich <lampe> <0/1>"
;;
all)
- TOGGLE=$2
toggle_all
;;
kuschel)
- TOGGLE=$2
kuschel
;;
software)
- TOGGLE=$2
software
;;
links)
- TOGGLE=$2
kuschel
software
;;
rechts)
- TOGGLE=$2
tische
porsche
ghetto
;;
tische)
- TOGGLE=$2
tische
;;
porsche)
- TOGGLE=$2
porsche
;;
ghetto)
- TOGGLE=$2
ghetto
;;
*)