sys-apps/opentmpfiles: create runlevel directories if they do not exist

Closes: https://bugs.gentoo.org/649480
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
William Hubbs
2018-12-04 09:10:39 -06:00
parent 64e4311fe6
commit e57f808ac2
2 changed files with 2 additions and 0 deletions
@@ -42,6 +42,7 @@ add_service() {
local runlevel=$2
elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
mkdir -p "${EROOT}"etc/runlevels/${runlevel}
ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
}
@@ -42,6 +42,7 @@ add_service() {
local runlevel=$2
elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
mkdir -p "${EROOT}"etc/runlevels/${runlevel}
ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
}