From c50dd6c797616814057ae392a85d800917872dd6 Mon Sep 17 00:00:00 2001 From: Mirza Krak Date: Thu, 26 Jul 2018 14:27:36 +0200 Subject: [PATCH] rvi_ctl.template: get rid of dependecy on "install" 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 --- scripts/rvi_ctl.template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/rvi_ctl.template b/scripts/rvi_ctl.template index 82ae11b..4840b4e 100644 --- a/scripts/rvi_ctl.template +++ b/scripts/rvi_ctl.template @@ -104,7 +104,8 @@ then else RUNDIR=${RVI_RUNDIR} fi - install -d --mode=0755 ${RUNDIR} + mkdir -m 755 -p ${RUNDIR} + cd ${RUNDIR} RVI_LOGDIR="${RVI_LOGDIR}" ${RVI_BINDIR}/setup_gen rvi ${CONFIG_FILE} rvi ) @@ -122,7 +123,8 @@ LAUNCH="${ERL} -boot ${RUNDIR}/rvi/start -sname ${SNAME} -config ${RUNDIR}/rvi/s case "${CMD}" in start) - install -D -d --mode 0755 ${RVI_LOGDIR} + mkdir -m 755 -p ${RVI_LOGDIR} + exec run_erl -daemon ${RUNDIR}/ ${RVI_LOGDIR} "exec ${LAUNCH}" ;;