From: Dobrica Pavlinusic Date: Thu, 12 Oct 2017 15:32:06 +0000 (+0200) Subject: how to install it X-Git-Url: http://git.rot13.org/?p=linux-usb-otg;a=commitdiff_plain;h=c006460a488a869ac0750cd4a5007b6279451f01;hp=67461ba7748583c88b41a855393af7a8f0b5cfd8 how to install it --- 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