Add hidusb relay instructions
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 11 Jul 2018 19:05:44 +0000 (15:05 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 11 Jul 2018 19:05:44 +0000 (15:05 -0400)
libremanage
notes/hidusb-relay-cmd-setup.md [new file with mode: 0644]

index 1c00ece6dbaaa03d2593e178dde0bf9202387bc5..8776159b1539f039133ea8d0823a9748676b74d6 100755 (executable)
@@ -60,6 +60,9 @@ def die_with_usage(message):
     sys.exit(1)
 
 def get_server_handle(name):
+    if name == "localhost":
+        return
+
     try:
         server = CONFIG["servers"][name]
     except KeyError:
diff --git a/notes/hidusb-relay-cmd-setup.md b/notes/hidusb-relay-cmd-setup.md
new file mode 100644 (file)
index 0000000..6ec1003
--- /dev/null
@@ -0,0 +1,10 @@
+git clone https://github.com/pavel-a/usb-relay-hid
+cd usb-relay-hid/
+cd commandline/
+cd makemake/
+apt update
+sudo apt install libusb-dev
+sudo apt install libusb-1.0-0-dev
+cp hidusb-relay-cmd /usr/local/bin
+make -j4
+hidusb-relay-cmd state