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
9 # allow root login from gadget serial port
10 grep ttyGS0 /etc/securetty || echo -e "# usb gadget serial\n/dev/ttyGS0\n" >> /etc/securetty