3 # make this the default shell for user tuerctl and add
4 # the following line to sudoers file:
6 # tuerctl ALL=(tuer) NOPASSWD: /flash/tuer/tuer_socat.sh
8 setopt histsubstpattern
9 local TUERCHAN="sudo -u tuer /flash/tuer/tuer_socat.sh"
11 [[ $1 == "-c" ]] && shift
15 echo "Usable commands are: open, close, toggle, reset, status"
17 ${(z)TUERCHAN} <<< "${${CMD[1]}:gs/[^a-zA-Z]//} ssh $1"