mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
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 <paul@crapouillou.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 10c7610bb9)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
b032b87efd
commit
d1f7d4078b
@@ -277,7 +277,9 @@ endif
|
|||||||
|
|
||||||
ifeq ($(BR2_INIT_BUSYBOX),y)
|
ifeq ($(BR2_INIT_BUSYBOX),y)
|
||||||
define BUSYBOX_INSTALL_INITTAB
|
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
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user