Displaying 1 result from an estimated 1 matches for "getty_command_line".
2008 Nov 19
0
Clean serial console setup when using an USB to serial converter
...onsole"
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 && $(/usr/bin/pgrep -xf
"${getty_command_line}" | /usr/bin/wc --lines) -eq 0 ]]
do
eval "${getty_command_line}"
done
[root at anyvizor scripts]#
Again, connectiv...