X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Flsb-functions;h=89c3f390e20b68847f96e6c33ed0e1663e43a2ed;hb=158d2aff363f208b9216e0a7373639a926266601;hp=42e89fb21fb04c4445211133021868721067a18a;hpb=fcb1f5a4c443b8c2e2ba359170dd8bb88a899fdb;p=grml-etc-core.git diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 42e89fb..89c3f39 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -204,19 +204,6 @@ get_bootconfig() { return 0 } -# void get_libdir(void) -# -# prints the current libdir {lib,lib32,lib64} -# -get_libdir() { - if [ -n "${CONF_LIBDIR_OVERRIDE}" ] ; then - CONF_LIBDIR="${CONF_LIBDIR_OVERRIDE}" - elif [ -x "/usr/bin/portageq" ] ; then - CONF_LIBDIR="$(/usr/bin/portageq envvar CONF_LIBDIR)" - fi - printf '%s\n' ${CONF_LIBDIR:=lib} -} - # void esyslog(char* priority, char* tag, char* message) # # use the system logger to log a message @@ -418,22 +405,6 @@ ewend() { return $retval } -# v-e-commands honor RC_VERBOSE which defaults to no. -# The condition is negated so the return value will be zero. -veinfo() { [ "${RC_VERBOSE}" != "yes" ] || einfo "$@"; } -veinfon() { [ "${RC_VERBOSE}" != "yes" ] || einfon "$@"; } -vewarn() { [ "${RC_VERBOSE}" != "yes" ] || ewarn "$@"; } -veerror() { [ "${RC_VERBOSE}" != "yes" ] || eerror "$@"; } -vebegin() { [ "${RC_VERBOSE}" != "yes" ] || ebegin "$@"; } -veend() { - [ "${RC_VERBOSE}" = "yes" ] && { eend "$@"; return $?; } - return ${1:-0} -} -veend() { - [ "${RC_VERBOSE}" = "yes" ] && { ewend "$@"; return $?; } - return ${1:-0} -} - # bool get_bootparam(param) # # return 0 if gentoo=param was passed to the kernel