diff options
author | makefu <github@syntax-fehler.de> | 2011-09-23 17:42:14 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-09-23 17:42:14 +0200 |
commit | f97bb70e6f3372c6bbbc70a057cc6880f1044c9a (patch) | |
tree | ff4109a802338dd97712938740e86e68852328b0 /god | |
parent | 41c07676d37dff4a46ca5e18aaa05fbe970acb63 (diff) | |
parent | 77ba054b1e3a55a54f4643bc544e7c3550006a00 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'god')
-rwxr-xr-x | god/licht | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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 ;; *) |