summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2014-03-13 16:11:27 +0000
committerWilliam Hubbs <williamh@gentoo.org>2014-03-13 16:11:27 +0000
commite128a48e632c7018afee611fa9071bb7314c4d44 (patch)
treeadf51ddf3de10e11f7c0fc5b410ac7b23dd9dfb8 /scripts
parentAdd a suffix to the internal package version when USE=-offensive. (diff)
downloadgentoo-2-e128a48e632c7018afee611fa9071bb7314c4d44.tar.gz
gentoo-2-e128a48e632c7018afee611fa9071bb7314c4d44.tar.bz2
gentoo-2-e128a48e632c7018afee611fa9071bb7314c4d44.zip
We should attempt to source /lib/gentoo/functions.sh before we attempt
to source /etc/init.d/functions.sh. Also, we should unconditionally define our own esyslog function. This is for bug #504376.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bootstrap.sh23
1 files changed, 13 insertions, 10 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index f5b3534578e3..18914b7bd4b3 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -1,7 +1,7 @@
#!/bin/bash
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.97 2013/06/27 21:04:49 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.98 2014/03/13 16:11:27 williamh Exp $
# people who were here:
# (drobbins, 06 Jun 2003)
@@ -12,23 +12,26 @@
# (azarah, Mar 2005)
# (uberlord, May 2007)
# (kumba, May 2007)
+# (williamh, Mar 2014)
# sanity check
[[ -e /etc/profile ]] && . /etc/profile
-if [[ -e /etc/init.d/functions.sh ]] ; then
+if [[ -e /lib/gentoo/functions.sh ]] ; then
+ source /lib/gentoo/functions.sh
+ elif [[ -e /etc/init.d/functions.sh ]] ; then
source /etc/init.d/functions.sh
-
- # Use our own custom script, else logger cause things to
- # 'freeze' if we do not have a system logger running
- esyslog() {
- :
- }
else
eerror() { echo "!!! $*"; }
einfo() { echo "* $*"; }
fi
+# Use our own custom script, else logger cause things to
+# 'freeze' if we do not have a system logger running
+esyslog() {
+ :
+}
+
show_status() {
local num=$1
shift
@@ -52,7 +55,7 @@ v_echo() {
env "$@"
}
-cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.97 2013/06/27 21:04:49 zmedico Exp $"
+cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.98 2014/03/13 16:11:27 williamh Exp $"
cvsver=${cvsver##*,v }
cvsver=${cvsver%%Exp*}
cvsyear=${cvsver#* }