meson: fix symlinks with sysvinit
This commit is contained in:
parent
a25ccbd8f2
commit
3f098817ef
@ -8,12 +8,12 @@ sbindir="$2"
|
|||||||
binaries=" halt poweroff rc-sstat reboot shutdown"
|
binaries=" halt poweroff rc-sstat reboot shutdown"
|
||||||
for f in $binaries; do
|
for f in $binaries; do
|
||||||
if [ -x "${DESTDIR}${rc_libexecdir}/bin/${f}" ]; then
|
if [ -x "${DESTDIR}${rc_libexecdir}/bin/${f}" ]; then
|
||||||
ln -snf "${DESTDIR}${rc_libexecdir}/bin/${f}" \
|
ln -snf "${rc_libexecdir}/bin/${f}" \
|
||||||
"${DESTDIR}${sbindir}/${f}"
|
"${DESTDIR}${sbindir}/${f}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# sysvinit is active when halt exits
|
# sysvinit is active when halt exits
|
||||||
if [ -x "${DESTDIR}${rc_libexecdir}/bin/halt" ]; then
|
if [ -x "${DESTDIR}${rc_libexecdir}/bin/halt" ]; then
|
||||||
ln -snf "${DESTDIR}${sbindir}/openrc-init" \
|
ln -snf "${sbindir}/openrc-init" \
|
||||||
"${DESTDIR}${sbindir}/init"
|
"${DESTDIR}${sbindir}/init"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user