From c006460a488a869ac0750cd4a5007b6279451f01 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 12 Oct 2017 17:32:06 +0200 Subject: [PATCH] how to install it --- README | 8 ++++++++ install.sh | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100755 install.sh diff --git a/README b/README index 811acfd..4f5b8ad 100644 --- a/README +++ b/README @@ -1,5 +1,13 @@ Let's make Linux OTG ports useful... +To install: + + cd /srv/ + git clone usb-otg + ./install.sh + + +Based on documentation from: http://www.chip-community.org/index.php/Chip:_USB_hid_on_libcomposite diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..f7dc580 --- /dev/null +++ b/install.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +cp usb-otg.service /etc/systemd/system/ +systemctl enable usb-otg +systemctl enable serial-getty@ttyGS0 +systemctl status usb-otg +systemctl status serial-getty@ttyGS0 + +# allow root login from gadget serial port +grep ttyGS0 /etc/securetty || echo -e "# usb gadget serial\n/dev/ttyGS0\n" >> /etc/securetty -- 2.20.1