Displaying 1 result from an estimated 1 matches for "respawn_usb_attached_console".
2008 Nov 19
0
Clean serial console setup when using an USB to serial converter
...v
configuration:
[root at anyvizor rules.d]# pwd
/etc/udev/rules.d
[root at anyvizor rules.d]# cat 10-custom.rules
BUS=="usb", KERNEL=="ttyUSB*" SYMLINK+="usb_attached_console"
SUBSYSTEM=="usb_device", ACTION=="add",
RUN+="/etc/udev/scripts/respawn_usb_attached_console.sh"
[root at anyvizor rules.d]#
[root at anyvizor scripts]# pwd
/etc/udev/scripts
[root at anyvizor scripts]# cat respawn_usb_attached_console.sh
#!/bin/env sh
getty_command_line="/sbin/agetty -L usb_attached_console 9600 vt100"
while [[ -e /dev/usb_attached_console && $(...