2016-04-17 23:45:46 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -u
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Add a console on tty1
|
2016-08-26 11:52:20 +02:00
|
|
|
if [ -e ${TARGET_DIR}/etc/inittab ]; then
|
|
|
|
grep -qE '^tty1::' ${TARGET_DIR}/etc/inittab || \
|
|
|
|
sed -i '/GENERIC_SERIAL/a\
|
2016-04-17 23:45:46 +02:00
|
|
|
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab
|
2016-08-26 11:52:20 +02:00
|
|
|
fi
|
2023-07-05 18:46:14 +02:00
|
|
|
|
|
|
|
# exnsure overlays exists for genimage
|
|
|
|
mkdir -p "${BINARIES_DIR}/rpi-firmware/overlays"
|