summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2014-11-25 21:16:16 +0000
committerWilliam Hubbs <williamh@gentoo.org>2014-11-25 21:16:16 +0000
commit941ae3c8ba2292767795ead0a532c4d6c9f48a53 (patch)
tree28cc8eec4ebf9551c76268bae1d570bfaf55b525 /sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
parentEnforce at-most-of Python 3.* target being selected. The library allows only ... (diff)
downloadgentoo-2-941ae3c8ba2292767795ead0a532c4d6c9f48a53.tar.gz
gentoo-2-941ae3c8ba2292767795ead0a532c4d6c9f48a53.tar.bz2
gentoo-2-941ae3c8ba2292767795ead0a532c4d6c9f48a53.zip
Add message about adding udev-trigger to sysinit
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x30C46538)
Diffstat (limited to 'sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild')
-rw-r--r--sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild b/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
index 901f34bf82cc..cc86cc8397f5 100644
--- a/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
+++ b/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild,v 1.29 2014/08/18 19:02:25 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild,v 1.30 2014/11/25 21:16:16 williamh Exp $
EAPI=5
@@ -42,6 +42,10 @@ pkg_postinst() {
if [[ -x ${ROOT%/}/etc/init.d/udev ]]; then
ln -s /etc/init.d/udev "${ROOT%/}"/etc/runlevels/sysinit/udev
fi
+ if [[ -x ${ROOT%/}/etc/init.d/udev-trigger ]]; then
+ ln -s /etc/init.d/udev-trigger \
+ "${ROOT%/}"/etc/runlevels/sysinit/udev-trigger
+ fi
fi
# Warn the user about adding udev to their sysinit runlevel
@@ -54,6 +58,14 @@ pkg_postinst() {
ewarn "Run this command:"
ewarn "\trc-update add udev sysinit"
fi
+ if [[ ! -e ${ROOT%/}/etc/runlevels/sysinit/udev-trigger ]]; then
+ ewarn
+ ewarn "You need to add udev-trigger to the sysinit runlevel."
+ ewarn "If you do not do this,"
+ ewarn "your system will not be able to boot!"
+ ewarn "Run this command:"
+ ewarn "\trc-update add udev-trigger sysinit"
+ fi
fi
if ! has_version "sys-fs/eudev[rule-generator]" && \