summaryrefslogtreecommitdiffstats
path: root/board/raspberrypi/post-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'board/raspberrypi/post-build.sh')
-rwxr-xr-xboard/raspberrypi/post-build.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/raspberrypi/post-build.sh b/board/raspberrypi/post-build.sh
index 7eae14a885..5e5eb71100 100755
--- a/board/raspberrypi/post-build.sh
+++ b/board/raspberrypi/post-build.sh
@@ -4,6 +4,8 @@ set -u
set -e
# Add a console on tty1
-grep -qE '^tty1::' ${TARGET_DIR}/etc/inittab || \
-sed -i '/GENERIC_SERIAL/a\
+if [ -e ${TARGET_DIR}/etc/inittab ]; then
+ grep -qE '^tty1::' ${TARGET_DIR}/etc/inittab || \
+ sed -i '/GENERIC_SERIAL/a\
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab
+fi
OpenPOWER on IntegriCloud