From: Paul Cercueil Date: Fri, 6 Dec 2019 12:31:54 +0000 (+0100) Subject: busybox: don't overwrite existing inittab X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10c7610bb9bd57c34feedf9856777e067cd93347;p=buildroot.git 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 --- 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