(legacy) restructure setup_serial_port, improve /etc/ttys handling after crash during boot
(legacy) restructure setup_serial_port, improve /etc/ttys handling after crash during boot

opnsense/core,opnsense/core,opnsense/core,opnsense/core,opnsense/core,opnsense/core