From 121aaf6e80e7f3ca6865778a5ea96b8b7b3f077a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 19 Feb 2004 19:01:40 +0000 Subject: merge in rhgb changes --- rc.d/init.d/functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rc.d/init.d') diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 827a96a9..0d3d755c 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -24,6 +24,7 @@ if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" ] ; then case "${LANG:-}" in ja_JP*|ko_KR*|zh_CN*|zh_TW*) export LC_MESSAGES=en_US + export LANG ;; *) export LANG @@ -387,6 +388,7 @@ failure() { trap - SIGPIPE fi [ "$BOOTUP" != "verbose" -a -z "$LSB" ] && echo_failure + [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=yes return $rc } @@ -437,6 +439,7 @@ strstr() { # Confirm whether we really want to run this service confirm() { + [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=yes while : ; do echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] " read answer @@ -444,6 +447,7 @@ confirm() { return 0 elif strstr $"cC" "$answer" ; then rm -f /var/run/confirm + [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=no return 2 elif strstr $"nN" "$answer" ; then return 1 -- cgit v1.2.1