#!/bin/sh # Run getty on serial port sed -i -e "s/#ttyS0::respawn:\/sbin\/getty -L ttyS0 115200 vt100/ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100" /etc/inittab