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 local TUERCHAN="sudo -u tuer /flash/tuer/tuer_socat.sh"
10 [[ $1 == "-c" ]] && shift
14 echo "Usable commands are: open, close, toggle, reset, status"
15 read -d $'\n'";,& " CMD #?"> "
16 CMD=(${=${${${CMD/;/ }/&/ }/\// }})
17 ${(z)TUERCHAN} <<< "${CMD[1]} ssh $1"