add fallback from /etc/sysconfig/mouse to /etc/sysconfig/gpm

This commit is contained in:
havill 2004-09-23 21:27:33 +00:00
parent 2df288c7fb
commit f599200952
2 changed files with 13 additions and 8 deletions

View File

@ -11,17 +11,22 @@
# source function library
. /etc/init.d/functions
[ -e /etc/sysconfig/gpm ] && . /etc/sysconfig/gpm
MOUSECFG=/etc/sysconfig/gpm
if test -e /etc/sysconfig/mouse
then
source /etc/sysconfig/mouse
MOUSECFG=/etc/sysconfig/mouse
elif test -e /etc/sysconfig/gpm
then
source /etc/sysconfig/gpm
MOUSECFG=/etc/sysconfig/gpm
fi
RETVAL=0
start() {
echo -n $"Starting console mouse services: "
if [ -f "$MOUSECFG" ]; then
. "$MOUSECFG"
else
if [ -z "$MOUSECFG" ]; then
echo $"(no mouse is configured)"
exit 0
fi

View File

@ -172,9 +172,9 @@ fi
%{_libdir}/libgpm.so
%changelog
* Thu Sep 23 2004 Adrian Havill <havill@redhat.com> 1.20.1-53
- change mouse config file from /etc/sysconfig/mouse to /etc/sysconfig/gpm
(#133141)
* Thu Sep 23 2004 Adrian Havill <havill@redhat.com> 1.20.1-54
- change init so that MOUSECFG fallsback to /etc/sysconfig/gpm if
/etc/sysconfig/mouse doesn't exist (#133141)
- fixed compile vs new kernheaders (#131783)
* Tue May 04 2004 Adrian Havill <havill@redhat.com> 1.20.1-49