From 10c7610bb9bd57c34feedf9856777e067cd93347 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Fri, 6 Dec 2019 13:31:54 +0100 Subject: [PATCH] busybox: don't overwrite existing inittab If a inittab file was already provided in the skeleton, don't overwrite it with the one that comes with the busybox package. Signed-off-by: Paul Cercueil Signed-off-by: Thomas Petazzoni --- package/busybox/busybox.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 301e72bdd2..6283bc96ea 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -277,7 +277,9 @@ endif ifeq ($(BR2_INIT_BUSYBOX),y) define BUSYBOX_INSTALL_INITTAB - $(INSTALL) -D -m 0644 package/busybox/inittab $(TARGET_DIR)/etc/inittab + if test ! -e $(TARGET_DIR)/etc/inittab; then \ + $(INSTALL) -D -m 0644 package/busybox/inittab $(TARGET_DIR)/etc/inittab; \ + fi endef endif -- 2.30.2