diff options
author | Roy Marples <roy@marples.name> | 2007-12-28 09:47:35 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-12-28 09:47:35 +0000 |
commit | 5150c582a11d0674c9c671ac04a600410becdb3e (patch) | |
tree | 4f5a02880a139ea5da31e407b2bc3b00b87d0f0a /sys-apps/openrc | |
parent | Add initial ebuilds for OpenRC (diff) | |
download | uberlord-5150c582a11d0674c9c671ac04a600410becdb3e.tar.gz uberlord-5150c582a11d0674c9c671ac04a600410becdb3e.tar.bz2 uberlord-5150c582a11d0674c9c671ac04a600410becdb3e.zip |
As bootmisc init script has been split out, we need to transparently add swap, sysctl and procfs to the boot runlevel
Diffstat (limited to 'sys-apps/openrc')
-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 |