* [Buildroot] [PATCH 1/2] board/minnowboard/post-build.sh: only tweak /etc/inittab if available
@ 2016-08-26 9:52 Peter Korsgaard
2016-08-26 9:52 ` [Buildroot] [PATCH 2/2] board/raspberrypi/post-build.sh: " Peter Korsgaard
2016-08-26 13:37 ` [Buildroot] [PATCH 1/2] board/minnowboard/post-build.sh: " Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Peter Korsgaard @ 2016-08-26 9:52 UTC (permalink / raw)
To: buildroot
As pointed out in bug #9161, we don't always have an inittab file (if
systemd or no init is used), so the post build script should only try to
tweak it if present.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
board/minnowboard/post-build.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/board/minnowboard/post-build.sh b/board/minnowboard/post-build.sh
index 1406a50..45f7b52 100755
--- a/board/minnowboard/post-build.sh
+++ b/board/minnowboard/post-build.sh
@@ -5,6 +5,8 @@
cp -v board/minnowboard/grub-${2}.cfg ${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg
# 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
--
2.8.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] board/raspberrypi/post-build.sh: only tweak /etc/inittab if available
2016-08-26 9:52 [Buildroot] [PATCH 1/2] board/minnowboard/post-build.sh: only tweak /etc/inittab if available Peter Korsgaard
@ 2016-08-26 9:52 ` Peter Korsgaard
2016-08-26 13:37 ` [Buildroot] [PATCH 1/2] board/minnowboard/post-build.sh: " Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2016-08-26 9:52 UTC (permalink / raw)
To: buildroot
As pointed out in bug #9161, we don't always have an inittab file (if
systemd or no init is used), so the post build script should only try to
tweak it if present.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
board/raspberrypi/post-build.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/board/raspberrypi/post-build.sh b/board/raspberrypi/post-build.sh
index 7eae14a..5e5eb71 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
--
2.8.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/2] board/minnowboard/post-build.sh: only tweak /etc/inittab if available
2016-08-26 9:52 [Buildroot] [PATCH 1/2] board/minnowboard/post-build.sh: only tweak /etc/inittab if available Peter Korsgaard
2016-08-26 9:52 ` [Buildroot] [PATCH 2/2] board/raspberrypi/post-build.sh: " Peter Korsgaard
@ 2016-08-26 13:37 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-08-26 13:37 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 26 Aug 2016 11:52:19 +0200, Peter Korsgaard wrote:
> As pointed out in bug #9161, we don't always have an inittab file (if
> systemd or no init is used), so the post build script should only try to
> tweak it if present.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
> board/minnowboard/post-build.sh | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Both applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-26 13:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-26 9:52 [Buildroot] [PATCH 1/2] board/minnowboard/post-build.sh: only tweak /etc/inittab if available Peter Korsgaard
2016-08-26 9:52 ` [Buildroot] [PATCH 2/2] board/raspberrypi/post-build.sh: " Peter Korsgaard
2016-08-26 13:37 ` [Buildroot] [PATCH 1/2] board/minnowboard/post-build.sh: " Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox