* [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
* [Buildroot] [PATCH 2/2] connman: install start script only if it doesn't already exists
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 ` Richard Genoud
2015-01-20 16:22 ` [Buildroot] [PATCH 1/2] dropbear: " Thomas Petazzoni
1 sibling, 0 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/connman/connman.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/connman/connman.mk b/package/connman/connman.mk
index 4d9b03ef1508..108ad848e92c 100644
--- a/package/connman/connman.mk
+++ b/package/connman/connman.mk
@@ -28,7 +28,8 @@ CONNMAN_DEPENDENCIES += \
$(if $(BR2_PACKAGE_CONNMAN_WISPR),gnutls)
define CONNMAN_INSTALL_INIT_SYSV
- $(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
+ [ -f $(TARGET_DIR)/etc/init.d/S45connman ] || \
+ $(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
endef
--
2.0.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] dropbear: install start script only if it doesn't already exists
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 ` Thomas Petazzoni
2015-01-23 14:43 ` Richard Genoud
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-01-20 16:22 UTC (permalink / raw)
To: buildroot
Dear Richard Genoud,
On Tue, 20 Jan 2015 12:29:53 +0100, Richard Genoud wrote:
> 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(-)
Sorry, but we precisely recently removed such conditions, because they
are not needed.
Don't use a custom skeleton, instead use a post-build script or a
rootfs overlay. With both of those methods, your custom init script
will take precedence over the one installed by Buildroot.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] dropbear: install start script only if it doesn't already exists
2015-01-20 16:22 ` [Buildroot] [PATCH 1/2] dropbear: " Thomas Petazzoni
@ 2015-01-23 14:43 ` Richard Genoud
0 siblings, 0 replies; 4+ messages in thread
From: Richard Genoud @ 2015-01-23 14:43 UTC (permalink / raw)
To: buildroot
2015-01-20 17:22 GMT+01:00 Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>:
> Dear Richard Genoud,
>
> On Tue, 20 Jan 2015 12:29:53 +0100, Richard Genoud wrote:
>> 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(-)
>
> Sorry, but we precisely recently removed such conditions, because they
> are not needed.
>
> Don't use a custom skeleton, instead use a post-build script or a
> rootfs overlay. With both of those methods, your custom init script
> will take precedence over the one installed by Buildroot.
Ok, I'll look into the rootfs overlay.
Thanks !
^ permalink raw reply [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