File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # empty
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # USBConsole
3+ # Adds a console (getty) on the Raspberrys USB Port, useful for debugging headless setups without network
4+ # Use minicom or Coolterm to access your PI (Note: This has only been tested on the RPI4)
5+ # Written by Lukas Bachschwell
6+ # GPL V3
7+ # #######
8+
9+
10+ # Source error handling, leave this in place
11+ set -x
12+ set -e
13+
14+ source /common.sh
15+ install_cleanup_trap
16+
17+
18+ echo " Enter usbconsole"
19+ systemctl enable serial-getty@ttyGS0
20+
21+
22+ # Note on raspberrypi gettys:
23+ # for a serial getty go not use the getty@ services (like getty@ttyGS0)
24+ # as these will hand when no device did connect to them and cause all kinds of funkey behaviour
25+ # like not being able to reboot the device without force
26+
27+ echo " dtoverlay=dwc2" >> /boot/config.txt
28+ echo " dwc2" >> /etc/modules
29+ echo " g_serial" >> /etc/modules
30+
You can’t perform that action at this time.
0 commit comments