Use /sbin/openrc-run for openrc init scripts

Using /sbin/runscript is deprecated and throws a QA warning
when still used in init scripts.

Reviewed-by: bunder2015 <omfgbunder@gmail.com>
Signed-off-by: BtbN <btbn@btbn.de>
Closes #6519
This commit is contained in:
BtbN 2017-08-17 00:51:51 +02:00 committed by Brian Behlendorf
parent c8f9061fc7
commit a1f3a1c05f

View File

@ -22,7 +22,7 @@ $(init_SCRIPTS) $(initconf_SCRIPTS) $(initcommon_SCRIPTS):%:%.in
NFS_SRV=nfs; \
fi; \
if [ -e /sbin/openrc-run ]; then \
SHELL=/sbin/runscript; \
SHELL=/sbin/openrc-run; \
else \
SHELL=/bin/sh; \
fi; \