mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 16:20:40 +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:
parent
d5e04a6b28
commit
8023c64393
@ -31,6 +31,8 @@ do_install_append () {
|
|||||||
|
|
||||||
# support for buggy init.d scripts that refer to an alternative
|
# support for buggy init.d scripts that refer to an alternative
|
||||||
# explicit path to start-stop-daemon
|
# explicit path to start-stop-daemon
|
||||||
mkdir -p ${D}/sbin/
|
if [ "${base_sbindir}" != "${sbindir}" ]; then
|
||||||
ln -sf /usr/sbin/start-stop-daemon ${D}/sbin/start-stop-daemon
|
mkdir -p ${D}${base_sbindir}
|
||||||
|
ln -sf ${sbindir}/start-stop-daemon ${D}${base_sbindir}/start-stop-daemon
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user