Odp: USB Relay - plugin do Gargoyle
Mała podpowiedź:
PORT=$PORT1
NR=$2
if [ $2 -gt 8 ]; then
PORT=$PORT2
NR=$(($2-8))
fi
if [ $2 -gt 16 ]; then
PORT=$PORT3
NR=$(($2-16))
fi
if [ $2 -gt 24 ]; then
PORT=$PORT4
NR=$(($2-24))
fi