diff options
| author | momo <momo+github@mo2-systems.com> | 2011-09-24 19:28:07 +0200 | 
|---|---|---|
| committer | momo <momo+github@mo2-systems.com> | 2011-09-24 19:28:07 +0200 | 
| commit | 53679fedeb1db9d68399638fc44aa4cf4ac5ee1c (patch) | |
| tree | e541238f691fd55eee3df11c16b17da962f093e8 | |
| parent | 702389e0c0c22c657c4c0e40c7403dc8366c8cff (diff) | |
//god/licht: add abstraction for specific toggles
| -rwxr-xr-x | god/licht | 14 | 
1 files changed, 8 insertions, 6 deletions
| @@ -56,7 +56,7 @@ toggle() {  toggle_all() {      for i in `seq 0 7`      do -        printf "\\xA5\\x5A\\x$i\\x$TOGGLE" | nc -u -w1 licht.shack 1337 & +        toggle $i $TOGGLE      done      wait  } @@ -64,7 +64,7 @@ toggle_all() {  kuschel(){      for i in 0 2      do -        printf "\\xA5\\x5A\\x$i\\x$TOGGLE" | nc -u -w1 licht.shack 1337 & +        toggle $i $TOGGLE      done      wait  } @@ -72,7 +72,7 @@ kuschel(){  software(){      for i in 1 3      do -        printf "\\xA5\\x5A\\x$i\\x$TOGGLE" | nc -u -w1 licht.shack 1337 & +        toggle $i $TOGGLE      done      wait  } @@ -80,17 +80,19 @@ software(){  tische(){      for i in 4 6       do -        printf "\\xA5\\x5A\\x$i\\x$TOGGLE" | nc -u -w1 licht.shack 1337 & +        toggle $i $TOGGLE      done      wait  }  ghetto(){ -    printf "\\xA5\\x5A\\x7\\x$TOGGLE" | nc -u -w1 licht.shack 1337  +    i=7 +    toggle $i $TOGGLE  }  porsche(){ -    printf "\\xA5\\x5A\\x5\\x$TOGGLE" | nc -u -w1 licht.shack 1337  +    i=5 +    toggle $i $TOGGLE  }  case "$1" in | 
