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

Commit

Permalink
rvi_ctl.template: get rid of dependecy on "install"
Browse files Browse the repository at this point in the history
Use mkdir instead which is most certanly already in place on the
device, otherwise this script will have a silent dependecy on
"coreutils" which is normally not used on embedded systems.

Signed-off-by: Mirza Krak <[email protected]>
  • Loading branch information
mirzak committed Jul 26, 2018
1 parent d63dd1c commit a4ce3fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/rvi_ctl.template
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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}"
;;

Expand Down

0 comments on commit a4ce3fb

Please sign in to comment.