summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2018-03-30 13:20:55 -0400
committerMike Gilbert <floppym@gentoo.org>2018-03-30 13:21:05 -0400
commit81452bebdccf3b60cc82102ad96daeb0310b9143 (patch)
treeb994128dae0b2fe898f536fe5ab7e0e9110efc68 /sys-apps/sysvinit
parentdev-libs/jsoncpp: remove unused patches (diff)
downloadgentoo-81452bebdccf3b60cc82102ad96daeb0310b9143.tar.gz
gentoo-81452bebdccf3b60cc82102ad96daeb0310b9143.tar.bz2
gentoo-81452bebdccf3b60cc82102ad96daeb0310b9143.zip
sys-apps/sysvinit: symlink /run/initctl to /dev/initctl in pkg_postinst
Closes: https://bugs.gentoo.org/651990 Package-Manager: Portage-2.3.24, Repoman-2.3.6_p81
Diffstat (limited to 'sys-apps/sysvinit')
-rw-r--r--sys-apps/sysvinit/sysvinit-2.89-r1.ebuild (renamed from sys-apps/sysvinit/sysvinit-2.89.ebuild)3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-apps/sysvinit/sysvinit-2.89.ebuild b/sys-apps/sysvinit/sysvinit-2.89-r1.ebuild
index 8b137cdc498e..8e44ac619eda 100644
--- a/sys-apps/sysvinit/sysvinit-2.89.ebuild
+++ b/sys-apps/sysvinit/sysvinit-2.89-r1.ebuild
@@ -105,6 +105,9 @@ pkg_postinst() {
# This is really needed, as without the new version of init cause init
# not to quit properly on reboot, and causes a fsck of / on next reboot.
if [[ ${ROOT} == / ]] ; then
+ if [[ -e /dev/initctl && ! -e /run/initctl ]]; then
+ ln -s /dev/initctl /run/initctl
+ fi
# Do not return an error if this fails
/sbin/telinit U &>/dev/null
fi