diff options
author | Bill Nottingham <notting@redhat.com> | 2004-02-19 19:01:40 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-02-19 19:01:40 +0000 |
commit | 121aaf6e80e7f3ca6865778a5ea96b8b7b3f077a (patch) | |
tree | a344fc837114a8853b3dd512560aa27bc4b8299b /rc.d/init.d | |
parent | 8511bee60cf26b222eab16a25dfa586f96aad86b (diff) | |
download | initscripts-121aaf6e80e7f3ca6865778a5ea96b8b7b3f077a.tar initscripts-121aaf6e80e7f3ca6865778a5ea96b8b7b3f077a.tar.gz initscripts-121aaf6e80e7f3ca6865778a5ea96b8b7b3f077a.tar.bz2 initscripts-121aaf6e80e7f3ca6865778a5ea96b8b7b3f077a.tar.xz initscripts-121aaf6e80e7f3ca6865778a5ea96b8b7b3f077a.zip |
merge in rhgb changes
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/functions | 4 |
1 files changed, 4 insertions, 0 deletions
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 |