sys-apps/openrc: install default "nonetwork" runlevel
authorWilliam Hubbs <williamh@gentoo.org>
Thu, 12 May 2016 22:19:10 +0000 (17:19 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Thu, 12 May 2016 22:19:10 +0000 (17:19 -0500)
Package-Manager: portage-2.2.28

sys-apps/openrc/openrc-9999.ebuild

index 5c100869fe668042844ede351bdb98cceb285eb3..f4ba4dc21db23561fc3e334f54b21f7c5c44bdf4 100644 (file)
@@ -280,6 +280,13 @@ pkg_postinst() {
                fi
        fi
 
+       # Added for 0.21
+       if [[ ! -e "${EROOT}"etc/runlevels/nonetwork ]]; then
+               einfo "copying default nonetwork runlevel"
+               cp -RPp "${EROOT}"usr/share/${PN}/runlevels/nonetwork \
+                       "${EROOT}"etc/runlevels
+       fi
+
        if use hppa; then
                elog "Setting the console font does not work on all HPPA consoles."
                elog "You can still enable it by running:"