mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
start-stop-daemon: Only create a link in ${base_sbindir} if necessary
If usrmerge is enabled in DISTRO_FEATURES, then ${base_sbindir} and
${sbindir} are set to the same path and the symbolic link from
${base_sbindir}/start-stop-daemon to ${sbindir}/start-stop-daemon can
(and should) not be created.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
d5e04a6b28
commit
8023c64393
@@ -31,6 +31,8 @@ do_install_append () {
|
||||
|
||||
# support for buggy init.d scripts that refer to an alternative
|
||||
# explicit path to start-stop-daemon
|
||||
mkdir -p ${D}/sbin/
|
||||
ln -sf /usr/sbin/start-stop-daemon ${D}/sbin/start-stop-daemon
|
||||
if [ "${base_sbindir}" != "${sbindir}" ]; then
|
||||
mkdir -p ${D}${base_sbindir}
|
||||
ln -sf ${sbindir}/start-stop-daemon ${D}${base_sbindir}/start-stop-daemon
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user