post-build.sh 324 B

12345678910
  1. #!/bin/sh
  2. cp -v board/minnowboard/grub.cfg ${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg
  3. # Add a console on tty1
  4. if [ -e ${TARGET_DIR}/etc/inittab ]; then
  5. grep -qE '^tty1::' ${TARGET_DIR}/etc/inittab || \
  6. sed -i '/GENERIC_SERIAL/a\
  7. tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab
  8. fi