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
./bootstrap ./configure --prefix=/usr --enable-testgui make make install
You need HIDAPI and USBRELAY:
git clone git:github.com/signal11/hidapi.git
git clone https://github.com/darrylb123/usbrelay.git
Check out the readme, and install dependencies before installing.
then:
gcc -o usbrelay usbrelay.c -lhidapi-libusb''
Then, in usbrelay folder:
Then do “ldconfig”
Read more here:
* http://www.signal11.us/oss/hidapi/
* https://github.com/darrylb123/usbrelay
To get status: <code>./usbrelay 2>/dev/null</code>
To get status in bash script:
<code>
$ eval $(sudo ./usbrelay 2>/dev/null)
$ echo $PSUIS_2
</code>
Turn on: <code>/usbrelay EO5ZA_1=1</code>
Turn off: <code>/usbrelay EO5ZA_1=0</code>