f7dc5803e009b3f8c4f2a76a3471e866e08d3fe4
[linux-usb-otg] / install.sh
1 #!/bin/sh
2
3 cp usb-otg.service /etc/systemd/system/
4 systemctl enable usb-otg
5 systemctl enable serial-getty@ttyGS0
6 systemctl status usb-otg
7 systemctl status serial-getty@ttyGS0
8
9 # allow root login from gadget serial port
10 grep ttyGS0 /etc/securetty || echo -e "# usb gadget serial\n/dev/ttyGS0\n" >> /etc/securetty