This repository has been archived by the owner on Oct 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
...ecipes-connectivity/rvi/files/0001-rvi_ctl.template-get-rid-of-dependecy-on-install.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters