build: fix symlinks

This commit is contained in:
William Hubbs
2021-09-08 11:59:25 -05:00
parent 803aa1c637
commit 46a0bfedd1
3 changed files with 14 additions and 1 deletions

View File

@@ -12,3 +12,8 @@ for f in $binaries; do
"${DESTDIR}${sbindir}/${f}"
fi
done
# sysvinit is active when halt exits
if [ -x "${DESTDIR}${rc_libexecdir}/bin/halt" ]; then
ln -snf "${DESTDIR}${sbindir}/openrc-init" \
"${DESTDIR}${sbindir}/init"
fi