This is an old revision of the document!
/etc/hostname
/etc/hosts
tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=100m 0 0
git:github.com/signal11/hidapi.git
*
git clone https://github.com/darrylb123/usbrelay.git
* Build HIDAPI, cd to source dir and:<code>./bootstrap
./configure –prefix=/usr –enable-testgui
make
make install</code>
You need HIDAPI and USBRELAY:
git clone git:github.com/signal11/hidapi.git
Check out the readme, and install dependencies before installing.
then: git clone https://github.com/darrylb123/usbrelay.git
Then, in usbrelay folder: gcc -o usbrelay usbrelay.c -lhidapi-libusb
Then do “ldconfig”
Read more here:
To get status:
./usbrelay 2>/dev/null
To get status in bash script:
$ eval $(sudo ./usbrelay 2>/dev/null) $ echo $PSUIS_2
Turn on:
/usbrelay EO5ZA_1=1
Turn off:
/usbrelay EO5ZA_1=0