Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] dropbear: install start script only if it doesn't already exists
@ 2015-01-20 11:29 Richard Genoud
  2015-01-20 11:29 ` [Buildroot] [PATCH 2/2] connman: " Richard Genoud
  2015-01-20 16:22 ` [Buildroot] [PATCH 1/2] dropbear: " Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Genoud @ 2015-01-20 11:29 UTC (permalink / raw)
  To: buildroot

That way, we can use a different start script in a custom skeleton.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
---
 package/dropbear/dropbear.mk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/dropbear/dropbear.mk b/package/dropbear/dropbear.mk
index 696095dc4f40..ab2456dae0bd 100644
--- a/package/dropbear/dropbear.mk
+++ b/package/dropbear/dropbear.mk
@@ -54,8 +54,9 @@ endef
 
 ifeq ($(BR2_USE_MMU),y)
 define DROPBEAR_INSTALL_INIT_SYSV
-	$(INSTALL) -D -m 755 package/dropbear/S50dropbear \
-		$(TARGET_DIR)/etc/init.d/S50dropbear
+	[ -f $(TARGET_DIR)/etc/init.d/S50dropbear ] || \
+		$(INSTALL) -D -m 755 package/dropbear/S50dropbear \
+			$(TARGET_DIR)/etc/init.d/S50dropbear
 endef
 else
 DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_DISABLE_STANDALONE
-- 
2.0.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-23 14:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-20 11:29 [Buildroot] [PATCH 1/2] dropbear: install start script only if it doesn't already exists Richard Genoud
2015-01-20 11:29 ` [Buildroot] [PATCH 2/2] connman: " Richard Genoud
2015-01-20 16:22 ` [Buildroot] [PATCH 1/2] dropbear: " Thomas Petazzoni
2015-01-23 14:43   ` Richard Genoud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox