summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2018-12-04 09:06:28 -0600
committerWilliam Hubbs <williamh@gentoo.org>2018-12-04 09:10:39 -0600
commite57f808ac2cdb22feb6c4ac856d71ff124c88dfd (patch)
tree30729757e5f0e1adc59bd3e5c0e96863f6bde431
parentapp-admin/perl-cleaner: Drop old (diff)
downloadgentoo-e57f808ac2cdb22feb6c4ac856d71ff124c88dfd.tar.gz
gentoo-e57f808ac2cdb22feb6c4ac856d71ff124c88dfd.tar.bz2
gentoo-e57f808ac2cdb22feb6c4ac856d71ff124c88dfd.zip
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>
-rw-r--r--sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild1
-rw-r--r--sys-apps/opentmpfiles/opentmpfiles-9999.ebuild1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild b/sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild
index 6752d491222..29060e14d37 100644
--- a/sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild
+++ b/sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild
@@ -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}
}
diff --git a/sys-apps/opentmpfiles/opentmpfiles-9999.ebuild b/sys-apps/opentmpfiles/opentmpfiles-9999.ebuild
index 55ea0afa6fa..212bffd098d 100644
--- a/sys-apps/opentmpfiles/opentmpfiles-9999.ebuild
+++ b/sys-apps/opentmpfiles/opentmpfiles-9999.ebuild
@@ -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}
}