kumquat-buildroot/board/synopsys/axs10x/post-build.sh
Evgeniy Didin 2cdfa6c849 synopsys/axs10x: Update /etc/inittab by post-build
To not maintain custom copy of inittab file lets adopt approach
used in raspberrypi adding post-build script for synopsys/axs10x
boards.

Signed-off-by: Evgeniy Didin <didin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: arc-buildroot@synopsys.com
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-06-19 13:52:12 +02:00

12 lines
243 B
Bash
Executable File

#!/bin/sh
set -u
set -e
# Add a console on tty0
if [ -e ${TARGET_DIR}/etc/inittab ]; then
grep -qE '^tty0::' ${TARGET_DIR}/etc/inittab || \
sed -i '/GENERIC_SERIAL/a\
tty0::respawn:/sbin/getty 115200 tty0' ${TARGET_DIR}/etc/inittab
fi