how to install it
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 12 Oct 2017 15:32:06 +0000 (17:32 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 12 Oct 2017 15:32:32 +0000 (17:32 +0200)
README
install.sh [new file with mode: 0755]

diff --git a/README b/README
index 811acfd..4f5b8ad 100644 (file)
--- a/README
+++ b/README
@@ -1,5 +1,13 @@
 Let's make Linux OTG ports useful...
 
 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
 
 
 http://www.chip-community.org/index.php/Chip:_USB_hid_on_libcomposite
 
diff --git a/install.sh b/install.sh
new file mode 100755 (executable)
index 0000000..f7dc580
--- /dev/null
@@ -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