Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

Commit 32f8617

Browse files
committed
meta-genivi-dev: rvi: remove dep on "install" applet
Use mkdir instead, otherwise we must install the full fledged coreutils package and seems a a overkill to do that for a single usage in a script. The busybox version of "install" does not work because options are used that are only present on the coreutils version of "install" Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
1 parent a57f86e commit 32f8617

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From b8f9a332e28f00035a37bd7eeb9e6471e998ab83 Mon Sep 17 00:00:00 2001
2+
From: Mirza Krak <mirza.krak@northern.tech>
3+
Date: Thu, 26 Jul 2018 14:27:36 +0200
4+
Subject: [PATCH 1/1] rvi_ctl.template: get rid of dependecy on "install"
5+
6+
Use mkdir instead which is most certanly already in place.
7+
8+
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
9+
---
10+
scripts/rvi_ctl.template | 4 ++--
11+
1 file changed, 2 insertions(+), 2 deletions(-)
12+
13+
diff --git a/scripts/rvi_ctl.template b/scripts/rvi_ctl.template
14+
index 82ae11b..d93fe2a 100644
15+
--- a/scripts/rvi_ctl.template
16+
+++ b/scripts/rvi_ctl.template
17+
@@ -104,7 +104,7 @@ then
18+
else
19+
RUNDIR=${RVI_RUNDIR}
20+
fi
21+
- install -d --mode=0755 ${RUNDIR}
22+
+ mkdir -p ${RUNDIR}
23+
cd ${RUNDIR}
24+
RVI_LOGDIR="${RVI_LOGDIR}" ${RVI_BINDIR}/setup_gen rvi ${CONFIG_FILE} rvi
25+
)
26+
@@ -122,7 +122,7 @@ LAUNCH="${ERL} -boot ${RUNDIR}/rvi/start -sname ${SNAME} -config ${RUNDIR}/rvi/s
27+
28+
case "${CMD}" in
29+
start)
30+
- install -D -d --mode 0755 ${RVI_LOGDIR}
31+
+ mkdir -p ${RVI_LOGDIR}
32+
exec run_erl -daemon ${RUNDIR}/ ${RVI_LOGDIR} "exec ${LAUNCH}"
33+
;;
34+
35+
--
36+
2.18.0
37+

meta-genivi-dev/meta-rvi/recipes-connectivity/rvi/rvi_git.bbappend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
22
SRC_URI += "\
33
file://rvi.service \
44
file://device_id \
5+
file://0001-rvi_ctl.template-get-rid-of-dependecy-on-install.patch \
56
"
67

78
do_install_append () {

0 commit comments

Comments
 (0)