diff options
-rw-r--r-- | sys-apps/openrc/openrc-0.1.ebuild | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-apps/openrc/openrc-0.1.ebuild b/sys-apps/openrc/openrc-0.1.ebuild index d17e454..b436d73 100644 --- a/sys-apps/openrc/openrc-0.1.ebuild +++ b/sys-apps/openrc/openrc-0.1.ebuild @@ -62,6 +62,18 @@ src_install() { fi } +pkg_preinst() { + local x= + + # baselayout bootmisc init script has been split out in OpenRC + # so handle upgraders + if ! has_version sys-apps/openrc; then + for x in procfs swap sysctl; do + ln -s ../../init.d/"${x}" "${ROOT}"etc/runlevels/boot/"${x}" + done + fi +} + pkg_postinst() { # Make our runlevels if they don't exist if [ ! -e "${ROOT}"etc/runlevels ]; then |