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

Commit

Permalink
meta-genivi-dev: rvi: remove dep on "install" applet
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mirzak committed Jul 26, 2018
1 parent a57f86e commit 32f8617
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From b8f9a332e28f00035a37bd7eeb9e6471e998ab83 Mon Sep 17 00:00:00 2001
From: Mirza Krak <[email protected]>
Date: Thu, 26 Jul 2018 14:27:36 +0200
Subject: [PATCH 1/1] rvi_ctl.template: get rid of dependecy on "install"

Use mkdir instead which is most certanly already in place.

Signed-off-by: Mirza Krak <[email protected]>
---
scripts/rvi_ctl.template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/rvi_ctl.template b/scripts/rvi_ctl.template
index 82ae11b..d93fe2a 100644
--- a/scripts/rvi_ctl.template
+++ b/scripts/rvi_ctl.template
@@ -104,7 +104,7 @@ then
else
RUNDIR=${RVI_RUNDIR}
fi
- install -d --mode=0755 ${RUNDIR}
+ mkdir -p ${RUNDIR}
cd ${RUNDIR}
RVI_LOGDIR="${RVI_LOGDIR}" ${RVI_BINDIR}/setup_gen rvi ${CONFIG_FILE} rvi
)
@@ -122,7 +122,7 @@ LAUNCH="${ERL} -boot ${RUNDIR}/rvi/start -sname ${SNAME} -config ${RUNDIR}/rvi/s

case "${CMD}" in
start)
- install -D -d --mode 0755 ${RVI_LOGDIR}
+ mkdir -p ${RVI_LOGDIR}
exec run_erl -daemon ${RUNDIR}/ ${RVI_LOGDIR} "exec ${LAUNCH}"
;;

--
2.18.0

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "\
file://rvi.service \
file://device_id \
file://0001-rvi_ctl.template-get-rid-of-dependecy-on-install.patch \
"

do_install_append () {
Expand Down

0 comments on commit 32f8617

Please sign in to comment.